Class StringExtensions
Inheritance
StringExtensions
Assembly: Estrelica.Utility.dll
Syntax
[DoNotObfuscateType]
public static class StringExtensions
Methods
Declaration
public static bool AintEmpty(this string input)
Parameters
Returns
Declaration
public static bool AintWhitespace(this string input)
Parameters
Returns
Declaration
public static string AssertNotEmpty(this string value, string name = null)
Parameters
Returns
Declaration
public static T AssertNotNull<T>(this T value, string name = null)
Parameters
Returns
Type Parameters
Declaration
public static string AssertNotWhitespace(this string value, string name = null)
Parameters
Returns
Declaration
public static string Conjoin(this IEnumerable values, string concatenator = ",", bool includeNulls = true)
Parameters
Returns
Declaration
public static string Decamelize(this string value)
Parameters
Returns
Declaration
public static bool EndsWith(this string value, char c)
Parameters
Returns
Declaration
public static string EscapeXml(this string text, bool isAttribute = false)
Parameters
Returns
Provides an intelligent splitting method, where the first character in the string will be interpreted as the separator if it is not an
alphanumeric character (overriding whatever might be passed in separator).
Declaration
public static string[] Intellisplit(this string value, char separator = ',')
Parameters
Returns
Declaration
public static bool IsNullOrEmpty(this string value, bool orWhitespace = true)
Parameters
Returns
Declaration
public static string MD5Hash(this string input)
Parameters
Returns
Declaration
public static string NullIfEmpty(this string value, bool orIfWhitespace = true)
Parameters
Returns
Declaration
public static string Pluralize(this string value, bool pluralCondition, string pluralString = null)
Parameters
Returns
Declaration
public static string Pluralize(this string value, int itemCount, string pluralString = null)
Parameters
Returns
Declaration
public static string Populate(this string value, params object[] values)
Parameters
Returns
Declaration
public static string RemoveEnd(this string input, IEnumerable<string> textsToRemove, bool ignoreCase = false)
Parameters
Returns
Declaration
public static string RemoveEnd(this string input, string value, bool ignoreCase = false)
Parameters
Returns
Declaration
public static string RemoveStart(this string input, IEnumerable<string> textsToRemove, bool ignoreCase = false)
Parameters
Returns
Declaration
public static string RemoveStart(this string input, string value, bool ignoreCase = false)
Parameters
Returns
Declaration
public static string Replace(this string input, Regex regex, string groupName, string replacement)
Parameters
Returns
Declaration
public static string[] SplitIdentifier(this string identifier, char separator = '.')
Parameters
Returns
Declaration
public static bool StartsWith(this string value, char c)
Parameters
Returns
Declaration
public static string Truncate(this string value, int maxLength)
Parameters
Returns
Declaration
public static string UnescapeXml(this string value)
Parameters
Returns
Declaration
public static IEnumerable<string> UniqueNonEmpty(this IEnumerable<string> values, bool alsoNotWhitespace = true, bool trimValues = true)
Parameters
Returns
Declaration
public static string WhenNullOrEmpty(this string value, string defaultIfNull, bool orWhenWhitespace = true)
Parameters
Returns