This documentation is archived and is not being maintained.

Object Class

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.

   Derived classes

[Visual Basic]
Public Class Object
public class Object
public __gc class Object
class Object

Thread Safety

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.


Namespace: System

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)

See Also

Object Members | System Namespace