/// <summary> /// Determines if a path segment contains a Windows directory separator. /// </summary> /// <remarks>Similar to <see cref="DirectorySeparator.IsMixedDirectorySeparatorsDetected(string)"/>, but uses an alternate, simpler, <see cref="String.Contains(string)"/> logic that should give the same answer, but just in case provides and alternate test.</remarks> public static bool ContainsMixedDirectorySeparator(string pathSegment) { var output = DirectorySeparator.ContainsWindowsDirectorySeparator(pathSegment) && DirectorySeparator.ContainsNonWindowsDirectorySeparator(pathSegment); return(output); }