Table of Contents

Struct Unit

Namespace
Mediarion
Assembly
Mediarion.dll

The absence of a response, as a value.

public readonly struct Unit : IEquatable<Unit>, IComparable<Unit>, IComparable
Implements
Inherited Members

Remarks

A generic pipeline cannot be written over "no type at all", so a request that answers with nothing answers with this instead. There is one of it and it carries no information.

Properties

Task

Gets a task that has already completed with Value.

Value

Gets the one value there is.

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.

CompareTo(object?)

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?)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

Operators

operator ==(Unit, Unit)

Returns true, since every instance is the same one.

operator >(Unit, Unit)

Compares two values, which are always equal.

operator >=(Unit, Unit)

Compares two values, which are always equal.

operator !=(Unit, Unit)

Returns false, since every instance is the same one.

operator <(Unit, Unit)

Compares two values, which are always equal.

operator <=(Unit, Unit)

Compares two values, which are always equal.