Skip to content

Commit e4aa398

Browse files
committed
Fix ambiguous call
1 parent 00cc75d commit e4aa398

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DendroDocs.Shared/Extensions/StringExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)