File tree Expand file tree Collapse file tree
src/ModelingEvolution.FileSystem Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ public AbsolutePath(string path)
2626 _value = NormalizePath ( path ) ;
2727 }
2828
29+ /// <summary>
30+ /// Gets the length of the path string.
31+ /// </summary>
32+ public int Length => ( _value ?? string . Empty ) . Length ;
33+
2934 /// <summary>
3035 /// Gets the file name portion of the path as a RelativePath.
3136 /// </summary>
Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ public RelativePath(string path)
3434 /// </summary>
3535 public bool IsEmpty => string . IsNullOrEmpty ( _value ) ;
3636
37+ /// <summary>
38+ /// Gets the length of the path string.
39+ /// </summary>
40+ public int Length => ( _value ?? string . Empty ) . Length ;
41+
3742 /// <summary>
3843 /// Gets the file name portion of the path as a RelativePath.
3944 /// </summary>
You can’t perform that action at this time.
0 commit comments