Why casting on enum member?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi Type of enum member is underlying type for the containing enum, then why casting is necessary on enum member? DF
-
Hi Type of enum member is underlying type for the containing enum, then why casting is necessary on enum member? DF
Diana Fernandez wrote: Type of enum member is underlying type for the containing enum, then why casting is necessary on enum member? Because it isn't the underlying type (even though the value might be physically stored as such), it is the type defined in your enum.
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.