My .NET Olai

Console.WriteLine("My experiences surrounding the .NET world in which I've been living since my graduation");


Just Another .NET Blog

MerryMan

Thursday, January 29, 2004

C# Types

While having discussion with my friend yesterday, I realized that “There's plenty of room in C# Types”.

Some of the questions i faced were:

Why did they go for Value Types?

What is actually a Stack and Heap?

Many more fundamental doubts arised. I am now in quest for answering those fundamental questions.

The First, among the plethora of doubts would be to clear “How much memory is allocated in Stack and in Heap for a simple program like the one below?”

//simple.cs
namespace ManiSoft.Practice
{
internal class Simple
{
public static void Main()
{
int x;
x = 7;
}
}
}

Also wondering at

Is x a Value Type? (B'cause it is within a Reference Type)

Ok. Out to read some basic stuff from Jeff Richter.

0 Comments:

Post a Comment

<< Home