Show / Hide Table of Contents

Class UnpackResult<T>

Contains the result of the async operation to unpack a resource.

Inheritance
object
UnpackResult<T>
Implements
IEquatable<UnpackResult<T>>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

UnpackResult(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 Source

Success

Indicates whether the unpack operation succeeded.

Declaration
public bool Success { get; init; }
Property Value
Type Description
bool
| Edit this page View Source

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 Source

implicit 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)

Implements

IEquatable<T>

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX