Method RemoveExtension
RemoveExtension(string)
Removes the extension from a file name.
Declaration
public static string RemoveExtension(this string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileName | File name to process. |
Returns
| Type | Description |
|---|---|
| string | The file name without its extension. |