Class Deconstructed<TCached, TNonCached>
A struct container for a deconstructed cached value.
Inheritance
System.Object
Deconstructed<TCached, TNonCached>
Implements
System.IEquatable<Deconstructed<TCached, TNonCached>>
Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public sealed class Deconstructed<TCached, TNonCached> : ValueType, IEquatable<Deconstructed<TCached, TNonCached>>
Type Parameters
Name | Description |
---|---|
TCached | Type of the cached component. |
TNonCached | Type of the non-cached component. |
Constructors
Deconstructed(TCached, TNonCached)
Creates the deconstructed cached value;
Declaration
public Deconstructed(TCached cached, TNonCached nonCached)
Parameters
Type | Name | Description |
---|---|---|
TCached | cached | The cached component. |
TNonCached | nonCached | The non-cached component. |
Properties
Cached
The cached component.
Declaration
public TCached Cached { get; }
Property Value
Type | Description |
---|---|
TCached |
NonCached
The non-cached component.
Declaration
public TNonCached NonCached { get; }
Property Value
Type | Description |
---|---|
TNonCached |
Methods
Equals(Deconstructed<TCached, TNonCached>)
Checks if two instances are equal.
Declaration
public bool Equals(Deconstructed<TCached, TNonCached> other)
Parameters
Type | Name | Description |
---|---|---|
Deconstructed<TCached, 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<TCached, TNonCached>, Deconstructed<TCached, TNonCached>)
Checks if two instances are equal.
Declaration
public static bool operator ==(Deconstructed<TCached, TNonCached> left, Deconstructed<TCached, TNonCached> right)
Parameters
Type | Name | Description |
---|---|---|
Deconstructed<TCached, TNonCached> | left | The left instance. |
Deconstructed<TCached, TNonCached> | right | The right instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if equal, false otherwise. |
Inequality(Deconstructed<TCached, TNonCached>, Deconstructed<TCached, TNonCached>)
Checks if two instances are not equal.
Declaration
public static bool operator !=(Deconstructed<TCached, TNonCached> left, Deconstructed<TCached, TNonCached> right)
Parameters
Type | Name | Description |
---|---|---|
Deconstructed<TCached, TNonCached> | left | The left instance. |
Deconstructed<TCached, TNonCached> | right | The right instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if not equal, false otherwise. |
Implements
System.IEquatable<>