Table of Contents

Struct Unit

Namespace
Caesar
Assembly
Caesar.Abstractions.dll

Represents a void return type. Used as the response of IRequest.

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

Fields

Task

A completed task whose result is Value.

public static readonly Task<Unit> Task

Field Value

Task<Unit>

Value

The single Unit value.

public static readonly Unit Value

Field Value

Unit

Methods

CompareTo(Unit)

public int CompareTo(Unit other)

Parameters

other Unit

Returns

int

Equals(Unit)

public bool Equals(Unit other)

Parameters

other Unit

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Unit, Unit)

Always true.

public static bool operator ==(Unit first, Unit second)

Parameters

first Unit
second Unit

Returns

bool

operator >(Unit, Unit)

Always false.

public static bool operator >(Unit left, Unit right)

Parameters

left Unit
right Unit

Returns

bool

operator >=(Unit, Unit)

Always true.

public static bool operator >=(Unit left, Unit right)

Parameters

left Unit
right Unit

Returns

bool

operator !=(Unit, Unit)

Always false.

public static bool operator !=(Unit first, Unit second)

Parameters

first Unit
second Unit

Returns

bool

operator <(Unit, Unit)

Always false.

public static bool operator <(Unit left, Unit right)

Parameters

left Unit
right Unit

Returns

bool

operator <=(Unit, Unit)

Always true.

public static bool operator <=(Unit left, Unit right)

Parameters

left Unit
right Unit

Returns

bool