- Reference types store addresses of data on Stack
- Actual data (object) is stored on heap.
- Garbage collection occurs only when needed.
- Assigning one reference variable to another doesn’t copy the data. Instead, assigning
a reference variable to another instance merely creates a second copy of the reference - When you modify a reference type, you modify all copies of that reference type.
- Arrays are reference types.
- Stream is an abstract class.
- Immutable objects are those whose value cannot be changed once it is assigned, e.g. string.
- If we tend to change an immutable object, it will return a new object.
- The default constructor for StringBuilder class creates 16-bytes buffer in memory.
- We can create our own Exceptions by deriving from System.ApplicationException class
- The Finally block runs after the Try block and any Catch blocks have
finished executing, whether or not an exception was thrown. - IConvertable enables a class to be converted to a base (built-in type)
- Partial classes allow you to split a class definition across multiple source files
- Using generics doesn’t require casting or boxing, which
improves run-time performance - A delegate declaration is sufficient to define a delegate class
- EventHandler is a predefined delegate that specifically represents an event handler
method for an event that does not generate data
Wednesday, June 3, 2009
Chapter 1-Lesson 2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment