Class Deconstructed<TCached1, TCached2, TNonCached>
A struct container for a deconstructed cached value.
Inheritance
Implements
Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public sealed class Deconstructed<TCached1, TCached2, TNonCached> : ValueType, IEquatable<Deconstructed<TCached1, TCached2, TNonCached>>
Type Parameters
Name | Description |
---|---|
TCached1 | Type of the first cached component. |
TCached2 | Type of the second cached component. |
TNonCached | Type of the non-cached component. |
Constructors
Deconstructed(TCached1, TCached2, TNonCached)
Creates the deconstructed cached value;
Declaration
public Deconstructed(TCached1 cached1, TCached2 cached2, TNonCached nonCached)
Parameters
Type | Name | Description |
---|---|---|
TCached1 | cached1 | The first cached component. |
TCached2 | cached2 | The second cached component. |
TNonCached | nonCached | The non-cached component. |
Properties
Cached1
The first cached component.
Declaration
public TCached1 Cached1 { get; }
Property Value
Type | Description |
---|---|
TCached1 |
Cached2
The second cached component.
Declaration
public TCached2 Cached2 { get; }
Property Value
Type | Description |
---|---|
TCached2 |
NonCached
The non-cached component.
Declaration
public TNonCached NonCached { get; }
Property Value
Type | Description |
---|---|
TNonCached |
Methods
Equals(Deconstructed<TCached1, TCached2, TNonCached>)
Checks if two instances are equal.
Declaration
public bool Equals(Deconstructed<TCached1, TCached2, TNonCached> other)
Parameters
Type | Name | Description |
---|---|---|
Deconstructed<TCached1, TCached2, TNonCached> | other | The other instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if equal, false otherwise. |
Equals(Object)
Checks if two instances are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The other instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if equal, false otherwise. |
GetHashCode()
Gets a hash code for the instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code. |
Operators
Equality(Deconstructed<TCached1, TCached2, TNonCached>, Deconstructed<TCached1, TCached2, TNonCached>)
Checks if two instances are equal.
Declaration
public static bool operator ==(Deconstructed<TCached1, TCached2, TNonCached> left, Deconstructed<TCached1, TCached2, TNonCached> right)
Parameters
Type | Name | Description |
---|---|---|
Deconstructed<TCached1, TCached2, TNonCached> | left | The left instance. |
Deconstructed<TCached1, TCached2, TNonCached> | right | The right instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if equal, false otherwise. |
Inequality(Deconstructed<TCached1, TCached2, TNonCached>, Deconstructed<TCached1, TCached2, TNonCached>)
Checks if two instances are not equal.
Declaration
public static bool operator !=(Deconstructed<TCached1, TCached2, TNonCached> left, Deconstructed<TCached1, TCached2, TNonCached> right)
Parameters
Type | Name | Description |
---|---|---|
Deconstructed<TCached1, TCached2, TNonCached> | left | The left instance. |
Deconstructed<TCached1, TCached2, TNonCached> | right | The right instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if not equal, false otherwise. |