File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/DendroDocs.Shared/Extensions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public static string ClassName(this string fullName)
1111 return string . Empty ;
1212 }
1313
14- return fullName . Substring ( Math . Min ( fullName . LastIndexOf ( Dot ) + 1 , fullName . Length ) ) ;
14+ return fullName [ Math . Min ( fullName . LastIndexOf ( Dot ) + 1 , fullName . Length ) .. ] ;
1515 }
1616
1717 public static string Namespace ( this string fullName )
@@ -21,7 +21,7 @@ public static string Namespace(this string fullName)
2121 return string . Empty ;
2222 }
2323
24- return fullName . Substring ( 0 , Math . Max ( fullName . LastIndexOf ( Dot ) , 0 ) ) . Trim ( Dot ) ;
24+ return fullName [ .. Math . Max ( fullName . LastIndexOf ( Dot ) , 0 ) ] . Trim ( Dot ) ;
2525 }
2626
2727 public static IReadOnlyList < string > NamespaceParts ( this string fullName )
@@ -31,6 +31,6 @@ public static IReadOnlyList<string> NamespaceParts(this string fullName)
3131 return [ ] ;
3232 }
3333
34- return fullName . Split ( [ Dot ] , StringSplitOptions . RemoveEmptyEntries ) ;
34+ return fullName . Split ( Dot , StringSplitOptions . RemoveEmptyEntries ) ;
3535 }
3636}
You can’t perform that action at this time.
0 commit comments