asp.net.ph

Object Class

System Namespace


Defines the root object of the type hierarchy.

Object Class Members

Collapse   Constructors

Visibility Constructor Parameters
public Object ( )

Collapse   Methods

Visibility Name Parameters Return Type
public static Equals ( Object objA , Object objB ) Boolean
public Equals ( Object obj ) Boolean
protected Finalize ( ) Void
public GetHashCode ( ) Int32
public GetType ( ) Type
protected MemberwiseClone ( ) Object
public static ReferenceEquals ( Object objA , Object objB ) Boolean
public ToString ( ) String

Remarks

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.

Skip Navigation Links



Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph