Show / Hide Table of Contents

Class StringExtensions

Inheritance
object
StringExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public static class StringExtensions

Methods

Append(string, string, string)

Declaration
public static string Append(this string stringValue, string stringToLink, string delimiter)
Parameters
Type Name Description
string stringValue
string stringToLink
string delimiter
Returns
Type Description
string

NormalizeString(string)

Declaration
public static string NormalizeString(this string input)
Parameters
Type Name Description
string input
Returns
Type Description
string

ReplaceIgnoreCase(string, string, string)

Declaration
public static string ReplaceIgnoreCase(this string source, string oldValue, string newValue)
Parameters
Type Name Description
string source
string oldValue
string newValue
Returns
Type Description
string

TrimToLength(string, int)

Declaration
public static string TrimToLength(this string source, int maxLength)
Parameters
Type Name Description
string source
int maxLength
Returns
Type Description
string

ValueOrEmpty(string)

Declaration
public static string ValueOrEmpty(this string stringValue)
Parameters
Type Name Description
string stringValue
Returns
Type Description
string
Back to top by the community, for the community... #DNNCMS