Wednesday, 11 September 2013

is int? a value-type or a reference-type

is int? a value-type or a reference-type

This question is more about adding a ? to a value type then about int?
in c# a int is a value type is int? a value or a reference type?
In my opinion it should be a reference type as it can be null.

No comments:

Post a Comment