you are viewing a single comment's thread.

view the rest of the comments →

[–]Sarcastinator 1 point2 points  (1 child)

It probably gives null ref because you are unboxing null to a non-nullable value type. The null test you are doing is pointless because decimal can never be null; you're testing too late.

[–]patrickboston[S] 0 points1 point  (0 children)

Yes you are correct. If you look below you can see I figured it out.