Class PathExtensions
- Namespace
- CarinaStudio.IO
- Assembly
- CarinaStudio.AppBase.Core.dll
Extensions for file name and path.
public static class PathExtensions
- Inheritance
-
PathExtensions
- Inherited Members
Methods
IsValidFileName(ReadOnlySpan<char>)
Check whether the given string can represent a valid file name or not.
public static bool IsValidFileName(this ReadOnlySpan<char> s)
Parameters
sReadOnlySpan<char>String.
Returns
- bool
True if the given string can represent a valid file name.
IsValidFileName(string?)
Check whether the given string can represent a valid file name or not.
public static bool IsValidFileName(this string? s)
Parameters
sstringString.
Returns
- bool
True if the given string can represent a valid file name.
IsValidFilePath(ReadOnlySpan<char>)
Check whether the given string can represent a valid file path or not.
public static bool IsValidFilePath(this ReadOnlySpan<char> s)
Parameters
sReadOnlySpan<char>String.
Returns
- bool
True if the given string can represent a valid file path.
IsValidFilePath(string?)
Check whether the given string can represent a valid file path or not.
public static bool IsValidFilePath(this string? s)
Parameters
sstringString.
Returns
- bool
True if the given string can represent a valid file path.