assingnig enum of one type to another c# code example
Example: initialize enum with another 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
}