Class Extensions
public static class Extensions
- Inheritance
-
Extensions
- Inherited Members
Methods
Capitalize(string?)
public static string Capitalize(this string? value)
Parameters
valuestring
Returns
EqualsIgnoreCase(string, string)
public static bool EqualsIgnoreCase(this string a, string b)
Parameters
Returns
GetDescription(Enum)
public static string GetDescription(this Enum value)
Parameters
valueEnum
Returns
Remarks
This method is not and shouldn't be used in performance-critical sections. Source: https://stackoverflow.com/a/1415187
GetIndexFromArray(string[], string)
public static int GetIndexFromArray(this string[] array, string value)
Parameters
Returns
GetIndexFromJaggedArray(int[][], int[])
public static int GetIndexFromJaggedArray(this int[][] array, int[] value)
Parameters
Returns
GetStateValues(int[], Dictionary<string, string[]>)
public static List<string> GetStateValues(this int[] indexes, Dictionary<string, string[]> valueStores)
Parameters
indexesint[]valueStoresDictionary<string, string[]>
Returns
IsNullOrEmpty(string?)
public static bool IsNullOrEmpty(this string? value)
Parameters
valuestring
Returns
IsNullOrWhitespace(string?)
public static bool IsNullOrWhitespace(this string? value)
Parameters
valuestring
Returns
ToEnchantType(string)
public static EnchantmentType ToEnchantType(this string source)
Parameters
sourcestring
Returns
ToPascalCase(string)
public static string ToPascalCase(this string snakeCase)
Parameters
snakeCasestring
Returns
ToSnakeCase(string)
public static string ToSnakeCase(this string str)
Parameters
strstring
Returns
TrimResourceTag(string, bool)
Trims resource tag from the start and removes '_' characters.
public static string TrimResourceTag(this string value, bool keepUnderscores = false)