Table of Contents

Class StringExtensions

Namespace
RandomizerCore.Extensions
Assembly
RandomizerCore.dll
public static class StringExtensions
Inheritance
StringExtensions
Inherited Members

Methods

FromCamelCase(string)

Converts a "camelCase" string to "Camel Case".

public static string FromCamelCase(this string str)

Parameters

str string

Returns

string

GetStableHashCode(string)

Returns a consistent platform-independent hash code for the string.

public static int GetStableHashCode(this string str)

Parameters

str string

Returns

int

TryToEnum<T>(string, out T)

If the string can be parsed to a value of the enum type, ignoring case, returns true and outputs the value. Otherwise, returns false.

public static bool TryToEnum<T>(this string self, out T val) where T : struct, Enum

Parameters

self string
val T

Returns

bool

Type Parameters

T