Struct NoValue
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
otherNoValueAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
typeTypeType 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
typeTypeType 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
Returns
operator !=(NoValue, NoValue)
public static bool operator !=(NoValue left, NoValue right)