Home > Interview Questions > .Net Framework > Which types are stored in stack and heap in C#?

Which types are stored in stack and heap in C#?

by Thamil   on 04/10/2015   Category: .Net Framework   |  Level: Intermediate   |  Views: 544    |  Points: 25     |  Gold 


In C#, Value types are stored on stack and reference types are stored in heap.
Below is the list of value types:

• bool
• byte
• char
• decimal
• double
• enum
• float
• int
• long
• sbyte
• short
• struct
• uint
• ulong
• ushort

Below is the list of value types:
• class
• interface
• delegate
• dynamic
• object
• string


« What is the difference between IS and AS operator in C#?
» What’s difference between ref and out parameters in C#?
Post Question  |  Question Home

Recent Posts

User Responses


No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts