C# Класс Cornerstone.Extensions.StringExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
IsNullOrWhiteSpace ( this self ) : bool

Indicates whether a specified string is null, empty, or consists only of white-space characters.

RemoveDiacritics ( this self ) : string

Translates characters to their base form. ( ë/é/è -> e)

source: http://blogs.msdn.com/michkap/archive/2007/05/14/2629747.aspx

ToValidFilename ( this self ) : string

Converts the string so it can be safely used as a filename.

TrimWhiteSpace ( this self ) : string

Replaces multiple white-spaces with one space

Описание методов

IsNullOrWhiteSpace() публичный статический Метод

Indicates whether a specified string is null, empty, or consists only of white-space characters.
public static IsNullOrWhiteSpace ( this self ) : bool
self this a string
Результат bool

RemoveDiacritics() публичный статический Метод

Translates characters to their base form. ( ë/é/è -> e)
source: http://blogs.msdn.com/michkap/archive/2007/05/14/2629747.aspx
public static RemoveDiacritics ( this self ) : string
self this
Результат string

ToValidFilename() публичный статический Метод

Converts the string so it can be safely used as a filename.
public static ToValidFilename ( this self ) : string
self this
Результат string

TrimWhiteSpace() публичный статический Метод

Replaces multiple white-spaces with one space
public static TrimWhiteSpace ( this self ) : string
self this
Результат string