Enums are by default sealed. So, we cant inherit.
No, not possible. Enums cannot inherit from other enums. In fact all enums must actually inherit from System.Enum . C# allows syntax to change the underlying representation of the enum values which looks like inheritance, but in actuality they still inherit from System.enum
378 down vote accepted This is not possible. Enums cannot inherit from other enums. In fact all enums must actually inherit from System.Enum. C# allows syntax to change the underlying representation of the enum values which looks like inheritance, but in actuality they still inherit from System.enum.See section 8.5.2 of the CLI spec for the full details. Relevant information from the specAll enums must derive from System.Enum Because of the above, all enums are value types and hence sealed
no, we cannot inherit enum
Enum is by default sealed.that why we can inherit enum.
Nope. it is not possible.
we can’t inherit, enum are by default sealed
Enum can not inherit in derived class because by default Enum is sealed.
int values to the constants as defined in the existing enum, then you can cast between the enum and the constants, e.g:public enum SomeEnum // this is the existing enum (from WSDL) {A = 1,B = 2,... } public class Base {public const int A = (int)SomeEnum.A;//... } public class Consume : Base {public const int D = 4;public const int E = 5; }// where you have to use the enum, use a cast: SomeEnum e = (SomeEnum)Consume.B;