C# Класс Sitecore.Modules.WeBlog.Extensions.StringExtensions

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

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

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

Determines whether the specified input has value.

MaxLength ( this input, int length, string continuesToken = "..." ) : string

Limits a strings length to a maximum number of characters

ToHtmlString ( this input ) : HtmlString

Converts string input into MvcHtmlString

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

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

Determines whether the specified input has value.
public static HasValue ( this input ) : bool
input this The input.
Результат bool

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

Limits a strings length to a maximum number of characters
public static MaxLength ( this input, int length, string continuesToken = "..." ) : string
input this The input to process
length int The maximum length of the string
continuesToken string The token to append to the string if it is truncated
Результат string

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

Converts string input into MvcHtmlString
public static ToHtmlString ( this input ) : HtmlString
input this
Результат HtmlString