enum_from_string


Description:


[ Version ( since = "3.8" ) ]
public bool enum_from_string (Type enum_type, string string, int enum_value)

Fetches the appropriate enumeration value for string in the given enum type type and stores the result in enum_value

Parameters:

enum_type

The enum type

string

The string containing the enum value or nick

enum_value

A return location to store the result

Returns:

true if the string was a valid name or nick for the given type, false if the conversion failed.


Namespace: E



2022 vala-language.org