|
||
Stack & HeapMemory AllocationThe Common Language Runtime allocates memory for objects in two places:
When a method is invoked,
Its advantage is that it allows objects to be allocated or deallocated in a random order. the heap requires the overhead of a memory manager and garbage collector to keep things in order. Value and Reference Types
a value type will allocate in the Stack.
a reference type will allocate a reference to the Heap in the stack, when in the Heap allocated the object's content. converting ValueTypes to Reference Types Int32 x = 5; object o = x; // Boxing x = o; // UnBoxing
|
|
HOME|
IIS6 pipeline|
ASP.NET pipeline|
Http Modules|
Http Handlers|
Caching|
Web Services|
Page Life Cycle|
Ajax|
Jquery|
Session State ViewState| SEO| Mobile Basics| Mobile Handsets| C# Modifiers| C# Keywords| N-Tier| Design patterns| Stack & Heap| WCF Databases| Relational Model| functionalities| Stored procedures| fishmarket |
|
| © 2010 All Rights Reserved |