S
Shimon Sim
I am writing general method that would take Type that should represent a
enum that do something with it.
In the middle of the method I need to cast it to this enum. I tried
Convert.ChangeType but it throws an exception - InvalidCast.
Wanted to know is it possible to make cast if you don't know the type at
the time of writing the code?
Thanks,
Shimon.
enum that do something with it.
In the middle of the method I need to cast it to this enum. I tried
Convert.ChangeType but it throws an exception - InvalidCast.
Wanted to know is it possible to make cast if you don't know the type at
the time of writing the code?
Thanks,
Shimon.