This project is read-only.

Some Enum Manipulation Examples

public enum MyEnum
{
	Default,
	First,
	Second
}

var num = EnumUtils.Parse<MyEnum>("First");

num = EnumUtils.GetRandom<MyEnum>();
			
IEnumerable<MyEnum> vals = EnumUtils.AsValues<MyEnum>();

Last edited Jan 21, 2011 at 8:55 AM by mike_sapiens, version 1

Comments

No comments yet.