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
Methods
Equals(Unit)
public bool Equals(Unit other)
Parameters
otherUnitThe 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
objobject?The object to compare against.
Returns
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
"()".