public static GetFileExtension ( this file ) : string | ||
file | this | |
return | string |
public static string GetFileExtension(this File file)
{
if (file == null) return string.Empty;
return Path.GetExtension(file.Name);
}