net core pass type enum code example
Example 1: c# size of enum
var myEnumMemberCount = Enum.GetNames(typeof(MyEnum)).Length;
Example 2: c# global enumerator
public class ClassName
{
// ... Other class members etc.
}
// Enum declared outside of the class
public enum Direction
{
north, south, east, west
}