Method HasExtension
HasExtension(string, string)
Checks if the given string ends with the given extension
Declaration
public static bool HasExtension(this string input, string extension)
Parameters
| Type | Name | Description |
|---|---|---|
| string | input | The input string |
| string | extension | The extension |
Returns
| Type | Description |
|---|---|
| bool | True if the extension is found on the string path |