Nullable<Int32> on heap or stack?

  • Thread starter Thread starter Jon Davis
  • Start date Start date
J

Jon Davis

Are nullable primatives stored on the stack, i.e. as a struct, or on the
heap as a reference type?

Jon
 
Jon Davis said:
Are nullable primatives stored on the stack, i.e. as a struct, or on the
heap as a reference type?

A nullable type is itself a value type - no boxing occurs.

-cd
 
Back
Top