Skip to Main Content

BTD_Mod_Helper.Extensions.StringExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

StringExt Class

Extensions for strings

public static class StringExt

Inheritance System.Object  StringExt

Methods

StringExt.NullIfEmpty(this string) Method

Returns null if a string is empty / whitespace, otherwise just returns back the string

public static string NullIfEmpty(this string s);

Parameters

s System.String

Returns

System.String

StringExt.RegexReplace(this string, string, string) Method

public static string RegexReplace(this string input, string pattern, string replacement);

Parameters

input System.String

pattern System.String

replacement System.String

Returns

System.String

StringExt.Spaced(this string) Method

Puts spaces between capitalized words within a string

public static string Spaced(this string s);

Parameters

s System.String

Returns

System.String

StringExt.ToTitleCase(this string) Method

public static string ToTitleCase(this string input);

Parameters

input System.String

Returns

System.String

To learn how to download BTD Mod Helper and install mods, click here