1. Value Types
- the data assigned to this type of variable is stored directly to the memory allocated to it
2. Reference Types
- stores the address of another variable or object stored in the heap
- similar to pointer variables in C
- can be tracked by the garbage collector (and will be disposed when no longer used)
3. Pointer Types
- stores the address of another variable or object stored in the heap
- also similar to pointer variables in C
- can only be used in C# using the unsafe keyword
- cannot be tracked by the garbage collector
Summary of Data Types found in C#:
Sunday, July 22, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment