how to create a subset of enum c# code example
Example: how to create a subset of enum c#
public enum MasterEnumAnimal {
Dog = 1,
Cat = 2,
Bird = 3,
Alligator = 4,
Camel = 5
}
// Subset
public enum Pet {
Dog = MasterEnumAnimal.Dog,
Cat = MasterEnumAnimal.Cat,
Bird = MasterEnumAnimal.Bird
}