Class UnpackResult<T>
Contains the result of the async operation to unpack a resource.
Implements
Inherited Members
Namespace: TheXDS.MCART.Resources
Assembly: MCART.dll
Syntax
public sealed record UnpackResult<T> : IEquatable<UnpackResult<T>>
Type Parameters
| Name | Description |
|---|---|
| T | Type of resource to be unpacked. |
Constructors
| Edit this page View SourceUnpackResult(bool, T?)
Contains the result of the async operation to unpack a resource.
Declaration
public UnpackResult(bool Success, T? Value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | Success | Indicates whether the unpack operation succeeded. |
| T | Value | Gets the result of the async unpack operation. |
Properties
| Edit this page View SourceSuccess
Indicates whether the unpack operation succeeded.
Declaration
[MemberNotNullWhen(true, "Value")]
public bool Success { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Value
Gets the result of the async unpack operation.
Declaration
public T? Value { get; init; }
Property Value
| Type | Description |
|---|---|
| T |
Operators
| Edit this page View Sourceimplicit operator (bool success, T? value)(UnpackResult<T>)
Implicitly converts an object of type UnpackResult<T>
into a value tuple of bool and T.
Declaration
public static implicit operator (bool success, T? value)(UnpackResult<T> result)
Parameters
| Type | Name | Description |
|---|---|---|
| UnpackResult<T> | result | Object converted to a tuple. |
Returns
| Type | Description |
|---|---|
| (bool success, T value) |