In This Topic
The following tables list the members exposed by StringUtil.
Public Methods
| Name | Description |
  | AppendString |
Appends a string to a StringBuilder, adding a separator if the StringBuilder is not empty.
|
  | ArrayContains |
Determines whether an array of strings contains the specified value.
|
  | CaseInsensitiveStringEquals |
Performs a case-insensitive comparison of two strings.
|
  | EmptyToDbNull |
Returns the original string, or DbNull.Value if the string is empty, null, or whitespace.
|
  | EmptyToNull |
Returns the original string, or null if the source is empty, null, or whitespace.
|
  | LimitText |
Truncates a string to the specified length, optionally appending an ellipsis to the
string to indicate that it has been truncated.
|
  | ListToString<T> |
Converts a list of objects to a delimiter-separated string
|
  | NullToEmpty |
Returns the original string, or an empty string if the source is null.
|
  | RemoveInvalidCharacters |
Removes characters that are not valid in XML
|
  | ReplaceString | Overloaded.
Performs a string replacement using the specified comparison operator (case-insensitive by default).
|
  | StartsWith |
Tests whether a string starts with another string
|
  | StringContains |
Tests whether a string contains another string.
|
  | StripLineBreaks |
Removes newlines from a string, replacing them with ". "
|
Top
Extension Methods
See Also