Search Results for

    Show / Hide Table of Contents

    Class object

    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.

    Inheritance
    object
    Namespace: System
    Assembly: mscorlib.dll
    Syntax
    public object

    Constructors

    Object()

    Initializes a new instance of the Object class.

    Declaration
    public Object()

    Methods

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public virtual bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    he object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Equals(object, object)

    Determines whether the specified object instances are considered equal.

    Declaration
    public static bool Equals(object objA, object objB)
    Parameters
    Type Name Description
    object objA

    The first object to compare.

    object objB

    The second object to compare.

    Returns
    Type Description
    bool

    true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public virtual int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    GetType()

    Gets the Type of the current instance.

    Declaration
    public Type GetType()
    Returns
    Type Description
    Type

    The exact runtime type of the current instance.

    Remarks

    Available only in mscorlib build with support for System.Reflection.

    MemberwiseClone()

    Creates a shallow copy of the current Object.

    Declaration
    protected object MemberwiseClone()
    Returns
    Type Description
    object

    A shallow copy of the current Object.

    ReferenceEquals(object, object)

    Determines whether the specified Object instances are the same instance.

    Declaration
    public static bool ReferenceEquals(object objA, object objB)
    Parameters
    Type Name Description
    object objA

    The first object to compare.

    object objB

    The second object to compare.

    Returns
    Type Description
    bool

    true if objA is the same instance as objB or if both are null; otherwise, false.

    ToString()

    Returns a string that represents the current object.

    Declaration
    public virtual string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Remarks

    Available only in mscorlib build with support for System.Reflection.

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In this article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX