C# Class Rebel.Cms.Web.FileExtensions

Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
GetFileExtension ( this file ) : string

Returns the file extension

GetFileNameForDisplay ( this file ) : string

Returns a nicely formatted file name: without extension and hyphens replaced by spaces for display

GetFileNameWithoutExtension ( this file ) : string

Returns the file name without extension

GetFilePathForDisplay ( this file ) : string
GetFilePathWithoutExtension ( this file ) : string
GetMimeType ( this file ) : string
IsImage ( this file ) : bool

Private Methods

Method Description
ToFileNameForDisplay ( this fileName ) : string

Method Details

GetFileExtension() public static method

Returns the file extension
public static GetFileExtension ( this file ) : string
file this
return string

GetFileNameForDisplay() public static method

Returns a nicely formatted file name: without extension and hyphens replaced by spaces for display
public static GetFileNameForDisplay ( this file ) : string
file this
return string

GetFileNameWithoutExtension() public static method

Returns the file name without extension
public static GetFileNameWithoutExtension ( this file ) : string
file this
return string

GetFilePathForDisplay() public static method

public static GetFilePathForDisplay ( this file ) : string
file this
return string

GetFilePathWithoutExtension() public static method

public static GetFilePathWithoutExtension ( this file ) : string
file this
return string

GetMimeType() public static method

public static GetMimeType ( this file ) : string
file this
return string

IsImage() public static method

public static IsImage ( this file ) : bool
file this
return bool