Method pathname.getExtension(+ 1 overload)
Overload
Gets filename extension, like ".txt"
.
public static string getExtension(string path)
Parameters
path (string)
Path or filename. Can be |
Returns
string
Returns |
Remarks
Supports separators '\\'
and '/'
.
Overload(top)
Gets filename extension and path part without the extension. More info: getExtension(string).
public static string getExtension(string path, out string pathWithoutExtension)
Parameters
path (string)
Path or filename. Can be |
pathWithoutExtension (string)
Receives path part without the extension. Can be the same variable as path. |