I know there is a way to make enum work for string types with conversions galore – the code doesn’t look pretty.
Does anyone know of any way to have something like this:
public SOMESTRUCTURE SessionKeys : string
{
value1 = "value1key",
value2 = "value2key",
name = "name"
}
so later in my code I could refer to it as:
SessionKeys.value1
This is about the best I’ve come up with. (I haven’t compiled it, so the syntax may be off.)