Click here to Skip to main content
15,896,513 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionMemory allocation for List Pin
sujithkumarsl9-Jun-10 22:45
sujithkumarsl9-Jun-10 22:45 
AnswerRe: Memory allocation for List Pin
Peace ON9-Jun-10 23:05
Peace ON9-Jun-10 23:05 
AnswerRe: Memory allocation for List Pin
Luc Pattyn10-Jun-10 1:42
sitebuilderLuc Pattyn10-Jun-10 1:42 
AnswerRe: Memory allocation for List Pin
Anshul R10-Jun-10 20:05
Anshul R10-Jun-10 20:05 
GeneralRe: Memory allocation for List Pin
Luc Pattyn11-Jun-10 1:51
sitebuilderLuc Pattyn11-Jun-10 1:51 
QuestionValue type in Stack??? Pin
sujithkumarsl9-Jun-10 20:44
sujithkumarsl9-Jun-10 20:44 
AnswerRe: Value type in Stack??? Pin
Richard MacCutchan9-Jun-10 21:32
mveRichard MacCutchan9-Jun-10 21:32 
AnswerRe: Value type in Stack??? Pin
LookSharp11-Jun-10 16:00
LookSharp11-Jun-10 16:00 
For a method's local variables, value types are indeed stored on the stack and reference types on the heap. Reference types are a little confusing, however, because they are really stored in two parts: the reference, which is stored on the stack just like a value type, and the 'body', which is stored on the heap.

Now, lets look at the body of a type (reference type or value type). Reference types and value types can have fields of both types. The fields of a type are (effectively) concatenated together. So the body of a type is the concatenation of the contained value types and the references to the contained reference types. And this body is 'a chunk of memory' which is stored somewhere - on the stack (if its the body of a value type), on the heap (if its the body of a reference type) .. or nestled inside the body of some other type (if its a field in another type).

So, it may be more useful to think of value types as being stored 'where they are declared' instead of thinking of them as being stored on the stack, while reference types have their reference stored where the variable is declared, and its body is always stored on the heap.
QuestionHow to hide Data Directory in VB 2.0 Pin
cyberexel9-Jun-10 15:37
cyberexel9-Jun-10 15:37 
AnswerRe: How to hide Data Directory in VB 2.0 Pin
Dave Kreskowiak9-Jun-10 17:19
mveDave Kreskowiak9-Jun-10 17:19 
GeneralRe: How to hide Data Directory in vs VB 2005 Pin
cyberexel12-Jun-10 18:08
cyberexel12-Jun-10 18:08 
GeneralRe: How to hide Data Directory in vs VB 2005 Pin
Pete O'Hanlon13-Jun-10 4:11
mvePete O'Hanlon13-Jun-10 4:11 
GeneralRe: How to hide Data Directory in vs VB 2005 Pin
Dave Kreskowiak13-Jun-10 5:17
mveDave Kreskowiak13-Jun-10 5:17 
GeneralRe: How to hide Data Directory in vs VB 2005 Pin
cyberexel14-Jun-10 23:16
cyberexel14-Jun-10 23:16 
Questioncombobox selected index chaged code Pin
prashanth pola9-Jun-10 2:08
prashanth pola9-Jun-10 2:08 
AnswerRe: combobox selected index chaged code Pin
DaveyM699-Jun-10 2:19
professionalDaveyM699-Jun-10 2:19 
AnswerRe: combobox selected index chaged code Pin
Anshul R9-Jun-10 3:46
Anshul R9-Jun-10 3:46 
GeneralRe: combobox selected index chaged code Pin
prashanth pola10-Jun-10 2:01
prashanth pola10-Jun-10 2:01 
GeneralRe: combobox selected index chaged code Pin
Anshul R10-Jun-10 20:08
Anshul R10-Jun-10 20:08 
AnswerRe: combobox selected index chaged code Pin
Not Active9-Jun-10 6:52
mentorNot Active9-Jun-10 6:52 
GeneralRe: combobox selected index chaged code Pin
prashanth pola10-Jun-10 2:44
prashanth pola10-Jun-10 2:44 
Question.net framework Pin
prashanth pola9-Jun-10 2:02
prashanth pola9-Jun-10 2:02 
QuestionIn which language CLR is written?? Pin
sujithkumarsl8-Jun-10 20:04
sujithkumarsl8-Jun-10 20:04 
AnswerRe: In which language CLR is written?? Pin
Peace ON8-Jun-10 20:21
Peace ON8-Jun-10 20:21 
GeneralRe: In which language CLR is written?? Pin
Hristo-Bojilov8-Jun-10 23:03
Hristo-Bojilov8-Jun-10 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.