Path.GetExtension(string)

Cambiar al Manual

Descripción

Returns the extension component of the specified path string.

The extension returned includes the . character used to separate the extension from the rest of the path.