Check out example codes for "loop through an enum c#". It will help you in understanding the concepts better.

Code Example 1

public enum Days {
  Monday,
  Tuesday,
  Wednesday
}

foreach(Days day in Enum.GetValues(typeof(Days))) {
  
}

Learn ReactJs, React Native from akashmittal.com