Open GoogleCodeExporter opened 9 years ago
you have a bug here, as if "val" is of Nullable<enum> and actual value is null
then conversion ".ToString()" will crash. Change that line to :
object result = val==null?null:Enum.Parse(nullableType, val.ToString());
and it will work fine
Original comment by Mariusz....@gmail.com
on 5 Dec 2012 at 3:16
Original issue reported on code.google.com by
younes.a...@gmail.com
on 22 Nov 2012 at 2:55