Yurttas/PL/OOL/CS/F/02/01/03.html

c# programming language fundamentals
2. c# language fundamentals

types -

  • stack - local variables and value types are allocated
    [ memory referred to by the name of the variable ]
  • stack objects are destroyed at the end of function call
  • heap - reference types
    [ when object is alloacated on the heap, its address is returned,
    and that address is assigned to a reference ]
  • heap objects collected sometime after the final reference to them is destroyed.

c#, .net framework, and visual studio.net << | >> classes, objects


Dr.Salih Yurttas