Check out example codes for "c# global enumerator". It will help you in understanding the concepts better.

Code Example 1

public class ClassName
{      
  // ... Other class members etc.
}

// Enum declared outside of the class
public enum Direction
{
  north, south, east, west
}

Learn ReactJs, React Native from akashmittal.com