Summary
Extension methods on
string and
StringBuilder for common string
manipulations.
- Namespace
-
GitVersion
.Extensions - Base Types
-
- object
graph BT Type-->Base0["object"] Type["StringExtensions"]
class Type type-node
Syntax
public static class StringExtensions
Methods
| Name | Value | Summary |
|---|---|---|
|
AppendLineFormat |
void |
Appends a formatted line (format + newline) to the
StringBuilder.
static
|
|
IsEmpty |
bool |
Returns
true when
value is
exactly System.String.Empty.
static
|
|
IsEquivalentTo |
bool |
Returns
true when
self and
other are
equal under ordinal case-insensitive comparison.
static
|
|
IsNullOrEmpty |
bool |
static
|
|
IsNullOrWhiteSpace |
bool |
static
|
|
RegexReplace |
string |
Replaces all occurrences of
pattern in
input with
replace
using the regex cache.
static
|
|
With |
string |
Prepends
prefix to
value when
the value is non-empty; returns the original value
otherwise.
static
|