Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

Object

class object

Module: System
Assembly: System.Runtime.dll
Source file: Object.rvn

Provides an abstract common object-reference base with runtime type inspection, display and bounded identity/equality behavior.

Remarks

Development support is bounded: GetType, ToString, ReferenceEquals, Equals and GetHashCode are implemented with the type restrictions in the Object and Value guide. String reference identity follows its shared immutable text owner across Object and interface conversions; explicit String.Intern canonicalizes text within one execution; literals are not automatically interned. Supported primitive boxes and String wrappers supply value/content equality and matching hashes; named structs dispatch explicit Object overrides, including generated record-struct members. Object is abstract; its protected constructor initializes the base portion of a derived instance. See the Object and Value guide. Ordinary class assignment shares a reference; value assignment copies fields.

Derived types

Documented types in this API reference. Indirect relationships are marked.

Show 459 moreShow less

Constructors

1 item
Object() No summary available.

Methods

5 items
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality.
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance.
Static member: ReferenceEquals(left: object?, right: object?) -> bool Tests whether two supported references denote the same underlying object or are both null.
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.