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


Jump to: navigation, search
CSharp-Online.NET:FAQs
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.

See also



Personal tools