Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
For a list of all members of this type, see Object Members.
[Visual Basic] <Serializable> <ClassInterface(ClassInterfaceType.AutoDual)> Public Class Object [C#] [Serializable] [ClassInterface(ClassInterfaceType.AutoDual)] public class Object [C++] [Serializable] [ClassInterface(ClassInterfaceType::AutoDual)] public __gc class Object [JScript] public Serializable ClassInterface(ClassInterfaceType.AutoDual) class Object
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
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.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: Mscorlib (in Mscorlib.dll)