ComponentUtilitiesCorrectFilePathSeparators Method
Namespace: Sandcastle.CoreAssembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2025.9.30.0
public static string CorrectFilePathSeparators(
this string path
)
<ExtensionAttribute>
Public Shared Function CorrectFilePathSeparators (
path As String
) As String
public:
[ExtensionAttribute]
static String^ CorrectFilePathSeparators(
String^ path
)
[<ExtensionAttribute>]
static member CorrectFilePathSeparators :
path : string -> string
- path String
- The file path to check
StringThe file path with the directory separators corrected if necessaryIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This ensures proper file paths regardless of the current operating system