Class StringExtensions
Inheritance
System.Object
StringExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Web
Assembly: EPiServer.Shell.dll
Version: 11.20.7Syntax
public static class StringExtensions
Methods
Contains(String, String, StringComparison)
Declaration
public static bool Contains(this string source, string value, StringComparison comparison)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | |
System.String | value | |
System.StringComparison | comparison |
Returns
Type | Description |
---|---|
System.Boolean |
Ellipsis(String, Int32)
Declaration
public static string Ellipsis(this string text, int maxLength)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Int32 | maxLength |
Returns
Type | Description |
---|---|
System.String |
TrimControllerSuffix(String)
Declaration
public static string TrimControllerSuffix(string controllerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | controllerName |
Returns
Type | Description |
---|---|
System.String |
TrimEnd(String, String)
Declaration
public static string TrimEnd(this string text, string textToTrim)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.String | textToTrim |
Returns
Type | Description |
---|---|
System.String |