FileHelper.GetExtension Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GetExtension(string)

Gets the extension, including the ".", of the specified path string (in lowercase).

The extension of the specified path (including the period "."), or null, or String.Empty. If path is null, GetExtension returns null. If path does not have extension information, GetExtension returns String.Empty.

public static string GetExtension(string path)

Parameters

path
string

The path string from which to get the extension.

Returns

string