A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class StringExtension

Inheritance
System.Object
StringExtension
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.Business.Commerce
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
[Obsolete("Methods has been moved to the namespace 'EPiServer.Commerce.Extensions'. Will remain at least until November 2016.")]
public static class StringExtension

Methods

ContainsIgnoreCase(String, String)

Declaration
[Obsolete("This method has been moved to the namespace 'EPiServer.Commerce.Extensions'. Will remain at least until November 2016.")]
public static bool ContainsIgnoreCase(this string source, string value)
Parameters
Type Name Description
System.String source
System.String value
Returns
Type Description
System.Boolean

StripPreviewText(String, Int32)

Declaration
[Obsolete("This method has been moved to the namespace 'EPiServer.Commerce.Extensions'. Will remain at least until November 2016.")]
public static string StripPreviewText(this string source, int maxLength)
Parameters
Type Name Description
System.String source
System.Int32 maxLength
Returns
Type Description
System.String

ToHtmlEncoded(String)

Declaration
[Obsolete("This method has been moved to the namespace 'EPiServer.Commerce.Extensions'. Will remain at least until November 2016.")]
public static string ToHtmlEncoded(this string source)
Parameters
Type Name Description
System.String source
Returns
Type Description
System.String

ToJavaScriptEncoded(String)

Declaration
[Obsolete("This method has been moved to the namespace 'EPiServer.Commerce.Extensions'. Will remain at least until November 2016.")]
public static string ToJavaScriptEncoded(this string source)
Parameters
Type Name Description
System.String source
Returns
Type Description
System.String

ToShorten(String)

Declaration
[Obsolete("This method has been moved to the namespace 'EPiServer.Commerce.Extensions'. Will remain at least until November 2016.")]
public static string ToShorten(this string source)
Parameters
Type Name Description
System.String source
Returns
Type Description
System.String

ToShorten(String, Int32, Boolean)

Declaration
[Obsolete("This method has been moved to the namespace 'EPiServer.Commerce.Extensions'. Will remain at least until November 2016.")]
public static string ToShorten(this string source, int maxSize, bool useDotDotDot)
Parameters
Type Name Description
System.String source
System.Int32 maxSize
System.Boolean useDotDotDot
Returns
Type Description
System.String