Table of Contents

Struct Unit

Namespace
ReactiveExtensionsSharp
Assembly
ReactiveExtensionsSharp.dll

Stands in for rxjs's never type parameter (e.g. streams that only ever error or complete).

public readonly struct Unit : IEquatable<Unit>
Implements
IEquatable<Unit>

Fields

Default

Gets the single value of the Unit type.

public static readonly Unit Default

Field Value

Unit

Methods

Equals(Unit)

Determines whether this instance equals other. Always true, since every Unit value is equivalent.

public bool Equals(Unit other)

Parameters

other Unit

The other value to compare against.

Returns

bool

Always true.

Equals(object?)

Determines whether obj is a Unit value.

public override bool Equals(object? obj)

Parameters

obj object?

The object to compare against.

Returns

bool

true if obj is a Unit; otherwise, false.

GetHashCode()

Returns a constant hash code, since every Unit value is equivalent.

public override int GetHashCode()

Returns

int

Always 0.

ToString()

Returns a string representation of this value.

public override string ToString()

Returns

string

The literal string "()".