Table of Contents

Struct Unit

Namespace
Velvet
Assembly
Velvet.Docs.dll

A type with a single value. Used in generic positions that stand in for "no value" (e.g. MutationResult<TVariables, TData> with no variables or no return value).

public readonly struct Unit

Fields

Default

The single Unit value, passed where a "no value" argument is required.

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

Equals(Unit)

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

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

Operators

operator ==(Unit, Unit)
operator !=(Unit, Unit)