Class MethodReturnType
Describes the sync or async method return type.
Inheritance
MethodReturnType
Assembly: Silverback.Core.dll
Syntax
public record MethodReturnType : IEquatable<MethodReturnType>
Constructors
MethodReturnType(MethodReturnType)
Describes the sync or async method return type.
Declaration
protected MethodReturnType(MethodReturnType original)
Parameters
Properties
EqualityContract
Describes the sync or async method return type.
Declaration
protected virtual Type EqualityContract { get; }
Property Value
HasResult
Declaration
public bool HasResult { get; }
Property Value
IsTask
Declaration
public bool IsTask { get; init; }
Property Value
IsValueTask
Declaration
public bool IsValueTask { get; init; }
Property Value
Methods
AwaitAndUnwrapResult(object?)
Declaration
public object? AwaitAndUnwrapResult(object? invokeResult)
Parameters
Returns
| Type |
Description |
| object |
The unwrapped result, or null if the method doesn't have a return value.
|
AwaitAndUnwrapResultAsync(object?)
Declaration
public Task<object?> AwaitAndUnwrapResultAsync(object? invokeResult)
Parameters
Returns
| Type |
Description |
| Task<object> |
The unwrapped result, or null if the method doesn't have a return value.
|
CreateFromMethodInfo(MethodInfo)
Declaration
public static MethodReturnType CreateFromMethodInfo(MethodInfo methodInfo)
Parameters
Returns
Equals(MethodReturnType?)
Describes the sync or async method return type.
Declaration
public virtual bool Equals(MethodReturnType? other)
Parameters
Returns
Equals(object?)
Describes the sync or async method return type.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Describes the sync or async method return type.
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Describes the sync or async method return type.
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Describes the sync or async method return type.
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(MethodReturnType?, MethodReturnType?)
Describes the sync or async method return type.
Declaration
public static bool operator ==(MethodReturnType? left, MethodReturnType? right)
Parameters
Returns
operator !=(MethodReturnType?, MethodReturnType?)
Describes the sync or async method return type.
Declaration
public static bool operator !=(MethodReturnType? left, MethodReturnType? right)
Parameters
Returns
Implements