System.Object Class
The ultimate base class of all types in the .NET Framework; the root of the class hierarchy.
Namespace:
Assembly:
- mscorlib.dll
Syntax
public abstract sealed class Object
Remarks
Every type in the .NET Framework, whether it is a reference type or a value type, is derived from Object, directly or indirectly. The Object class provides a set of instance methods that are available to all objects and that are the basis for the type system.
Value types, such as structures (struct) and enumeration types (enum), are implicitly converted to Object when they are passed to a method that accepts an Object parameter. This process is called boxing. The value type is wrapped in a new instance of the reference type Object, and the value type is copied into the new object.
Members
Methods
Defines methods that are available to all objects.
Fields
No public fields are defined by the Object class.
Properties
No public properties are defined by the Object class.
Methods
Equals
public static bool Equals(object objA, object objB)Determines whether the specified object instances are equal.
Equals
public virtual bool Equals(object obj)Indicates whether some other object is "equal to" this one.
ReferenceEquals
public static bool ReferenceEquals(object objA, object objA)Determines whether the specified Object instances are the same instance.