Skip to content

Instantly share code, notes, and snippets.

public class MyEnum
{
public static readonly MyEnum Val1;
public static readonly MyEnum Val2;
public static MyEnum FromId(int id)
{
return MyEnumsById[id];
}