コード例 #1
0
        /// <summary>
        /// Determine if the Windows directory separator is detected in a path segment, but if no directory separator is detected, assume the Windows directory separator was detected (return true).
        /// </summary>
        public static bool IsWindowsDirectorySeparatorDetectedAssumeWindows(string pathSegment)
        {
            var directorySeparator = DirectorySeparator.DetectDirectorySeparatorOrWindows(pathSegment);

            var isWindows = DirectorySeparator.IsWindowsDirectorySeparator(directorySeparator);

            return(isWindows);
        }
コード例 #2
0
        public string DetectDirectorySeparatorOrWindows(string pathSegment)
        {
            var output = DirectorySeparator.DetectDirectorySeparatorOrWindows(pathSegment);

            return(output);
        }