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

API Browser

Struct

HashCode

struct HashCode

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

Inheritance: Object → ValueType → HashCode

A mutable value accumulator for combining integer and string components into an execution-local hash.

Remarks

Development API. Copies have independent state. This bounded implementation has no generic Add or comparer overloads, no randomized seed, and no persistent or cryptographic guarantee. It does not reproduce .NET hash values. Equal component sequences produce equal hashes; collisions are possible.

Constructors

1 item
HashCode() Creates an empty accumulator.

Methods

8 items
Add(value: int) -> () Mixes an integer component into this accumulator.
Add(value: string) -> () Adds canonical text identity without encoding an intermediate byte array.
Static member: Combine(first: int, second: int) -> int Combines two integer components in order.
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
ToHashCode() -> int Returns the current combined hash without changing the accumulator.
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString