Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Casting of enum fields

$
0
0

Hey Hello .net Experts, I have a question regarding the implicit casting of enum. If we are having same type of enums should we cast both before we are comparing these?

It is something like if there are two enums of type int then should we cast implicitly before we are comparing both for robust programming?

What are your thoughts? Please suggest.



Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>