Divooka Reference

Object Routines

8 nodes

On this page 8

Create

Function

A new, empty object that holds no data and equals nothing but itself, useful as a unique marker or as something to lock on.

Signature
Create() -> Any
object Create()

Returns

resultAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Object Routines
Package
Standard Library

Equals

Function

Whether two values are equal, using the first value's own idea of equality (so two texts with the same characters are equal). Two nulls are equal, and a null is never equal to a non-null value; unlike ObjectRoutines.LogicalEquals, either input may be null.

Signature
Equals(objA: Any, objB: Any) -> Truth
bool Equals(object objA, object objB)

Parameters

nametypedefaultdescription
objAAny—The first value to compare, or null.
objBAny—The second value to compare, or null.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Object Routines
Package
Standard Library

Get Hash Code

Function

The value's hash code, the number dictionaries and sets use to file it. Equal values give equal hash codes, but different values can share one, and some (text, for example) change from one run of the program to the next, so it is not an identifier to store. Throws System.ArgumentNullException when Target is null.

Signature
GetHashCode(target: Any) -> Integer
int GetHashCode(object target)

Parameters

nametypedefaultdescription
targetAny—The value to hash.

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Object Routines
Package
Standard Library

Get Type

Function

The actual type of the value at run time, which can be more specific than the type of the wire it arrived on. Throws System.ArgumentNullException when Target is null.

Signature
GetType(target: Any) -> Type
Type GetType(object target)

Parameters

nametypedefaultdescription
targetAny—The value to inspect.

Returns

resultType
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Object Routines
Package
Standard Library

Logical Equals

Function

Whether Target considers itself equal to Obj, by whatever equality its type defines (which may be custom). Throws System.ArgumentNullException when Target is null; use ObjectRoutines.Equals when either side may be null.

Signature
LogicalEquals(target: Any, obj: Any) -> Truth
bool LogicalEquals(object target, object obj)

Parameters

nametypedefaultdescription
targetAny—The value whose equality rule is used.
objAny—The value to compare it with, or null.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Object Routines
Package
Standard Library

Memberwise Clone

Function

A shallow copy of the value: a new object of the same type whose fields hold the same values as the original's, so any objects it refers to (lists, for example) are shared with the original rather than copied. Throws System.ArgumentNullException when Target is null.

Signature
MemberwiseClone(target: Any) -> Any
object MemberwiseClone(object target)

Parameters

nametypedefaultdescription
targetAny—The value to copy.

Returns

resultAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Object Routines
Package
Standard Library

Reference Equals

Function

Whether two inputs are the very same object, not merely equal in content; two nulls count as the same. Numbers and other value types are copied separately when passed in, so they never compare as the same object, even with themselves.

Signature
ReferenceEquals(objA: Any, objB: Any) -> Truth
bool ReferenceEquals(object objA, object objB)

Parameters

nametypedefaultdescription
objAAny—The first object, or null.
objBAny—The second object, or null.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Object Routines
Package
Standard Library

To String

Function

The value's text form, as its type defines it; a type that defines none gives its full type name. A number or a date is written the one way Divooka writes it, whatever region the machine is set to - 1.5, 2026-01-02 14:30:00 - and anything else that can be formatted, in the invariant culture. Throws System.ArgumentNullException when Target is null.

Signature
ToString(target: Any) -> Text
string ToString(object target)

Parameters

nametypedefaultdescription
targetAny—The value to describe.

Returns

resultText

Remarks

Round 24: the one spelling (Abstraction.ValueText), as Number to Text writes it - it used to write the machine's region's, so the same document gave "1,5" on a German machine.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Object Routines
Package
Standard Library