Check out example codes for "enum in method as argument c#". It will help you in understanding the concepts better.

Code Example 1

public static void MyEnumMethod(Enum e)
    {
        var enumValues = Enum.GetValues(e.GetType());
        // you can iterate over enumValues with foreach
    }

MyEnumMethod(new MyEnum());

Learn ReactJs, React Native from akashmittal.com