Heap and Stack Memory : Variable Definition : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » Variable Definition »

 

Heap and Stack Memory








    

/*
 * C# Programmers Pocket Consultant
 * Author: Gregory S. MacBeth
 * Email: gmacbeth@comporium.net
 * Create Date: June 27, 2003
 * Last Modified Date:
 */
using System;

namespace Client.Chapter_7___References__Pointers_and_Memory_Management
{
  public class HeapandStackMemory
  {
    static void Main(string[] args)
    {
      MyClass ThisClass = new MyClass();
    }
  }
  public class MyClass
  {
    public int MyInt;
    private long MyLong;
    public void DoSomething()
    {
      Console.WriteLine(MyInt);
      Console.WriteLine(MyLong);
    }
  }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» Variable Definition