Monday, June 4, 2012

Structure Vs Class in C#


When you create an instance of a class with the new operator, memory gets allocated on the heap. When you create an instance of a struct with the new operator where does the memory get allocated, on the heap or on the stack ?



Source: Tips4all

No comments:

Post a Comment