-
Notifications
You must be signed in to change notification settings - Fork 1
Object Lifetime
Mario Gutierrez edited this page Jan 7, 2017
·
1 revision
-
Finalize()
is called when an object is garbage collected.- In C# you define this like a C++ destructor
~MyClass()
instead of overridingFinalize()
. - This is not usually implemented.
- In C# you define this like a C++ destructor
-
IDisposable
defines theDispose()
method.- This is called manually by the client when finished to release resources.
-
Lazy<T>
is a wrapper class that implements lazy initialization.
- Abstract Classes
- Access Modifiers
- Anonymous Methods
- Anonymous Types
- Arrays
- Attributes
- Console I/O
- Constructors
- Const Fields
- Delegates
- Enums
- Exceptions
- Extension Methods
- File IO
- Generics
- Interfaces
- Iterators
- LINQ
- Main
- Null Operators
- Parameters
- Polymorphism
- Virtual Functions
- Reflection
- Serialization
- Strings
- Value Types
- "Base" Keyword
- "Is" and "As"
- "Sealed" Keyword
- nameof expression