string.EndsWithSeparator()

Here are the examples of the csharp api string.EndsWithSeparator() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 Source : PathUtilities.cs
with MIT License
from dotnet

public static string EndWithSeparator(this string path)
            => path.EndsWithSeparator() ? path : path + Path.DirectorySeparatorChar;

19 Source : PathUtilities.cs
with MIT License
from dotnet

public static string EndWithSeparator(this string path, char separator)
            => path.EndsWithSeparator() ? path : path + separator;