System Namespace
Defines the root object of the type hierarchy.
Visibility |
Constructor |
Parameters |
public |
Object |
( )
|
|
The Object class supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate superclass of all classes in the .NET Framework.
Languages typically do not require a class to declare inheritance from Object because the inheritance is implicit.
Because all classes in the .NET Framework are derived from Object, every method defined in the Object class is available in all objects in the system. Derived classes can and do override some of these methods, including:
- Equals Supports comparisons between objects.
- Finalize Performs cleanup operations before an object is automatically reclaimed.
- GetHashCode Generates a number corresponding to the value of the object to support the use of a hash table.
- ToString Manufactures a human-readable text string that describes an instance of the class.