Table of Contents

Struct NoValue

Namespace
NexusRpc.Handlers
Assembly
NexusRpc.dll

Representation of no input/return type for an operation handler. This is the same as typeof(void) (if not using generics).

public struct NoValue : IEquatable<NoValue>
Implements
Inherited Members

Methods

Equals(NoValue)

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

public bool Equals(NoValue other)

Parameters

other NoValue

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

IsVoidType(Type)

Whether the given type is "void"-like (NoValue, ValueTuple, or typeof(void)).

public static bool IsVoidType(Type type)

Parameters

type Type

Type to check.

Returns

bool

True if void-like type given, false otherwise.

NormalizeVoidType(Type)

Normalize the given type if "void"-like (NoValue, ValueTuple, or typeof(void)) to typeof(void).

public static Type NormalizeVoidType(Type type)

Parameters

type Type

Type to normalize.

Returns

Type

typeof(void) if void-like type given, otherwise just the type given.

Operators

operator ==(NoValue, NoValue)

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

Parameters

left NoValue
right NoValue

Returns

bool

operator !=(NoValue, NoValue)

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

Parameters

left NoValue
right NoValue

Returns

bool