get_value_by_nick


Description:

public T get_value_by_nick<T> (string nick) throws EnumParseError

Retrieves the enum value for the given string nick.

It is an assertion error to provide a non-enum class as the type argument.

Parameters:

nick

the string nick value

Returns:

the enum value

Exceptions:

Catalyst.EnumParseError

if no enum value exists with the given nick


Namespace: Catalyst.EnumUtils
Package: catalyst-1