• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class StringExtensions

Inheritance
System.Object
StringExtensions
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public static class StringExtensions : object

Methods

| Improve this Doc View Source

Append(String, String, String)

Declaration
public static string Append(this string stringValue, string stringToLink, string delimiter)
Parameters
Type Name Description
System.String stringValue
System.String stringToLink
System.String delimiter
Returns
Type Description
System.String
| Improve this Doc View Source

NormalizeString(String)

Takes a string and removes any diacritics.

Declaration
public static string NormalizeString(this string input)
Parameters
Type Name Description
System.String input

String to normalize.

Returns
Type Description
System.String

String without diacritics.

| Improve this Doc View Source

ReplaceIgnoreCase(String, String, String)

Alternative to that supports case insensitive replacement.

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

The source.

System.String oldValue

The old value.

System.String newValue

The new value.

Returns
Type Description
System.String

The source with oldValue replaced by newValue.

| Improve this Doc View Source

TrimToLength(String, Int32)

Declaration
public static string TrimToLength(this string source, int maxLength)
Parameters
Type Name Description
System.String source
System.Int32 maxLength
Returns
Type Description
System.String
| Improve this Doc View Source

ValueOrEmpty(String)

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