Skip to content

Unit struct

Namespace: Vitreous
Assembly: Vitreous.dll

Represents the absence of a meaningful value.

Used as the TResult type parameter for void commands so they participate in the same [IPipelineBehavior<TMessage, TResult>](/Vitreous/api/vitreous/abstractions/ipipelinebehavior-2/) pipeline as commands that return a value. Behaviors written against IPipelineBehavior<TMessage, TResult> automatically apply to void commands when registered as open generics — no separate ICommandPipelineBehavior implementation is needed.

public readonly struct Unit

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

The single value of this type.

public static readonly Unit Value

Unit

Returns the fully qualified type name of this instance.

public override string ToString()

string

The fully qualified type name.