C# FAQ: Are CSharp objects allocated on the heap
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| CSharp-Online.NET:FAQs |
| edit |
[edit]
Are C# objects allocated on the heap?
Just as Java objects are created on the heap using the new keyword, most C# objects are created on the heap in the same way.
And, C# also supports stack based objects called value types.
[edit]