Validate integer value before casting it to an Enum type(dotnettipoftheday.org)
submitted by
manovich(755) 4 years, 7 months ago
There is one thing you should watch out for when using enumerations. You can cast any integer to an Enum type and you will not get an exception message.
|category: C#
|Views: 17
tags:
Enum C# another
Everyones tags:
Your Tags: