StringExtensions Class

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(StringBuilder, string, object[]) void
Appends a formatted line (format + newline) to the StringBuilder.
static
IsEmpty(string) bool
Returns true when value is exactly System.String.Empty.
static
IsEquivalentTo(string, string) bool
Returns true when self and other are equal under ordinal case-insensitive comparison.
static
IsNullOrEmpty(string) bool
static
IsNullOrWhiteSpace(string) bool
static
RegexReplace(string, string, string) string
Replaces all occurrences of pattern in input with replace using the regex cache.
static
WithPrefixIfNotNullOrEmpty(string, string) string
Prepends prefix to value when the value is non-empty; returns the original value otherwise.
static
GitHub