IntroductionWhat goes inside when you declare a variable?Stack and HeapBy Val and By refSo which data types are ref type and value type?Boxing and UnboxingPerformance implication of boxing and Unboxing Source code---------
What goes inside when you declare a variable? When you declare a variable in a .Net application, it allocates some chunk of memory in to the RAM. This memory has 3 things first the name of the variable, second data type of the variable and finally the value of the variable. That was a simple explanation of what happens in the memory, but depending on what kind of data type your variable is allocated on that type of memory. There are two types of memory allocation stack memory and heap memory. In the coming sections we will try to understand these two types of memory in more details. Read more: Codeproject
What goes inside when you declare a variable? When you declare a variable in a .Net application, it allocates some chunk of memory in to the RAM. This memory has 3 things first the name of the variable, second data type of the variable and finally the value of the variable. That was a simple explanation of what happens in the memory, but depending on what kind of data type your variable is allocated on that type of memory. There are two types of memory allocation stack memory and heap memory. In the coming sections we will try to understand these two types of memory in more details. Read more: Codeproject
0 comments:
Post a Comment