object
class objectAvailable without an import.
The root class for reference types. Default equality and hashing use object identity;
content-based classes can override both. Default text is object. Identity is independent of a
moving heap address; nullable identity operations accept null.
Members
ReferenceEqualsmethod
public static fn ReferenceEquals(object? left, object? right) : boolTests whether two references identify the same object. Two nulls compare equal; this bypasses virtual content equality.
StableIdmethod
public static fn StableId(object? value) : uint64Returns the runtime identity of an object, or zero for null. It remains stable across promotion, but is meaningful within its originating execution/recording, not as a universal cross-run identifier.
GetHashCodemethod
public virtual fn GetHashCode() : uint32Hashes this object's stable identity. A content-equality override should supply a matching content hash.
Equalsmethod
public virtual fn Equals(object other) : boolTests reference identity by default. Overrides can implement content equality against another object.
ToStringmethod
public virtual fn ToString() : stringReturns object by default; overrides can supply useful text.
ToStringBuffermethod
public virtual fn ToStringBuffer(StringBuilder builder) : int32Appends the virtual ToString result and returns the number of UTF-8 bytes appended.
TextFromBuffermethod
public static fn TextFromBuffer<T>(T value) : stringBuilds a new string by invoking the value's ToStringBuffer method. Intended for types
providing a buffer-based text implementation.
BufferFromTextmethod
public static fn BufferFromText<T>(T value, StringBuilder builder) : int32Appends the value's ToString result to the supplied builder and returns the number of
bytes appended.
constructorconstructor
public constructor ()Provided by the compiler.