Table of Contents

Struct Unit

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll
    A struct for the unit type, which is close to 
void

.

[PublicAPI]
public readonly struct Unit : IEquatable<Unit>, IStructuralEquatable, IStructuralComparable, IComparable, IComparable<Unit>
Implements
Inherited Members
Extension Methods

Fields

Value

The singleton value of type Unit.

Methods

CompareTo(Unit)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Equals(Unit)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

Gives true when the given object is also a Unit.

GetHashCode()

Returns a hash code for this instance.

ToString()

Returns a string that represents the value of this Unit instance.

Operators

operator ==(Unit, Unit)

Returns true since instances of Unit are always equal.

operator !=(Unit, Unit)

Returns false since instances of Unit are always equal.