Introduction
Sometimes the way two languages implement a feature can significantly differ in surprising ways, and even the keywords can be misleading.
This is the case of instantiation of C++ classes and C# structs a.k.a. .NET value types.
In this article, we will see the differences between the two languages in the way they handle the creation of objects: their memory allocation and their initialization.
Continue reading