Class Deconstructed<TCached1, TCached2, TCached3, TCached4, 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, TCached3, TCached4, TNonCached> : ValueType, IEquatable<Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached>>
Type Parameters
Name | Description |
---|---|
TCached1 | Type of the first cached component. |
TCached2 | Type of the second cached component. |
TCached3 | Type of the third cached component. |
TCached4 | Type of the fourth cached component. |
TNonCached | Type of the non-cached component. |
Constructors
Deconstructed(TCached1, TCached2, TCached3, TCached4, TNonCached)
Creates the deconstructed cached value;
Declaration
public Deconstructed(TCached1 cached1, TCached2 cached2, TCached3 cached3, TCached4 cached4, TNonCached nonCached)
Parameters
Type | Name | Description |
---|---|---|
TCached1 | cached1 | The first cached component. |
TCached2 | cached2 | The second cached component. |
TCached3 | cached3 | The third cached component. |
TCached4 | cached4 | The fourth 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 |
Cached3
The third cached component.
Declaration
public TCached3 Cached3 { get; }
Property Value
Type | Description |
---|---|
TCached3 |
Cached4
The fourth cached component.
Declaration
public TCached4 Cached4 { get; }
Property Value
Type | Description |
---|---|
TCached4 |
NonCached
The non-cached component.
Declaration
public TNonCached NonCached { get; }
Property Value
Type | Description |
---|---|
TNonCached |
Methods
Equals(Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached>)
Checks if two instances are equal.
Declaration
public bool Equals(Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached> other)
Parameters
Type | Name | Description |
---|---|---|
Deconstructed<TCached1, TCached2, TCached3, TCached4, 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, TCached3, TCached4, TNonCached>, Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached>)
Checks if two instances are equal.
Declaration
public static bool operator ==(Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached> left, Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached> right)
Parameters
Type | Name | Description |
---|---|---|
Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached> | left | The left instance. |
Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached> | right | The right instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if equal, false otherwise. |
Inequality(Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached>, Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached>)
Checks if two instances are not equal.
Declaration
public static bool operator !=(Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached> left, Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached> right)
Parameters
Type | Name | Description |
---|---|---|
Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached> | left | The left instance. |
Deconstructed<TCached1, TCached2, TCached3, TCached4, TNonCached> | right | The right instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if not equal, false otherwise. |