To get all values of an enum, we can use the Enum. GetValues static method . The Enum. GetValues method returns an array of all enum values.
To get all values of an enum, we can use the Enum. GetValues static method . The Enum. GetValues method returns an array of all enum values.