New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Definition

Namespace:Kendo.Mvc.Extensions

Assembly:Kendo.Mvc.dll

Syntax:

C#
public static class StringExtensions

Inheritance: objectStringExtensions

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Methods

C#
public static string AsTitle(this string value)
Parameters:valuestringReturns:

string

C#
public static string EscapeHtmlEntities(this string html)
Parameters:htmlstringReturns:

string

Replaces the format item in a specified System.String with the text equivalent of the value of a corresponding System.Object instance in a specified array.

C#
public static string FormatWith(this string instance, params object[] args)
Parameters:instancestring

A string to format.

argsobject[]

An System.Object array containing zero or more objects to format.

Returns:

string

A copy of format in which the format items have been replaced by the System.String equivalent of the corresponding instances of System.Object in args.

C#
public static bool HasValue(this string value)
Parameters:valuestringReturns:

bool

Determines whether this instance and another specified System.String object have the same value.

C#
public static bool IsCaseInsensitiveEqual(this string instance, string comparing)
Parameters:instancestring

The string to check equality.

comparingstring

The comparing with string.

Returns:

bool

true if the value of the comparing parameter is the same as this string; otherwise, false.

Determines whether this instance and another specified System.String object have the same value.

C#
public static bool IsCaseSensitiveEqual(this string instance, string comparing)
Parameters:instancestring

The string to check equality.

comparingstring

The comparing with string.

Returns:

bool

true if the value of the comparing parameter is the same as this string; otherwise, false.

C#
public static string KebabCaseToPascalCase(this string value)
Parameters:valuestringReturns:

string

C#
public static string PascalCaseToKebabCase(this string value)
Parameters:valuestringReturns:

string

C#
public static string RemoveWhiteSpace(this string instance)
Parameters:instancestringReturns:

string

C#
public static string SplitPascalCase(this string value)
Parameters:valuestringReturns:

string

C#
public static string ToCamelCase(this string instance)
Parameters:instancestringReturns:

string

C#
public static T ToEnum<T>(this string value, T defaultValue)
Parameters:valuestringdefaultValueTReturns:

T