C
CKKwan
enum E = {a = 10, b = 10, c = 10};
object Value = 10;
E? En = (E?)(int?)Value;
Why do I need to caste it to (int?) before (E?)
On the other hand, if it is not nullable, it doesn't request to cast
to (int)
E En = (E) Value;
Thanks in advance.
object Value = 10;
E? En = (E?)(int?)Value;
Why do I need to caste it to (int?) before (E?)
On the other hand, if it is not nullable, it doesn't request to cast
to (int)
E En = (E) Value;
Thanks in advance.