StringExtensions.GetFileExtension Method

Telerik ILS Common String Extenstion Methods

StringExtensionsGetFileExtension Method
Returns the file extension of a string representing a full file name.

Namespace: Telerik.ILS.Common
Assembly: StringExtensions (in StringExtensions.dll) Version: (
public static string GetFileExtension(
	this string fileName
Public Shared Function GetFileExtension ( 
	fileName As String
) As String
static String^ GetFileExtension(
	String^ fileName
static member GetFileExtension : 
        fileName : string -> string 


Type: SystemString

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also