Exemple #1
0
        private DirectoryPath EnsureTerminalDirectorySeperator(DirectoryPath path)
        {
            //System.IO.Path.
            if (XStrings.EndsWith(path.Value, System.IO.Path.DirectorySeparatorChar))
            {
                return(path);
            }

            return(new DirectoryPath()
            {
                Value = path.Value + System.IO.Path.DirectorySeparatorChar
            });
        }
Exemple #2
0
 public static bool EndsWith(this string source, char value)
 {
     return(XStrings.EndsWith(source, value));
 }