Table of Contents

Struct Unit

Namespace
AnyProtocol.Abstraction
Assembly
AnyProtocol.Abstraction.dll

Represents a successful operation that has no response payload.

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

Properties

Value

Gets the value represented by this member.

public static Unit Value { get; }

Property Value

Unit

The value.

Methods

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)

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

Parameters

left Unit
right Unit

Returns

bool

operator !=(Unit, Unit)

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

Parameters

left Unit
right Unit

Returns

bool