Method GetFileNameWithoutExtension
GetFileNameWithoutExtension(string)
Gets the file name from the specified path string without the extension.
Declaration
public static string GetFileNameWithoutExtension(string path)
Parameters
Type |
Name |
Description |
string |
path |
The file path.
|
Returns
Type |
Description |
string |
The file name without the extension, or null if the path is null.
|
GetFileNameWithoutExtension(ReadOnlySpan<char>)
Declaration
public static ReadOnlySpan<char> GetFileNameWithoutExtension(ReadOnlySpan<char> path)
Parameters
Returns