Show / Hide Table of Contents

Class Deconstructed<TCached1, TCached2, TCached3, TNonCached>

A struct container for a deconstructed cached value.

Inheritance
System.Object
Deconstructed<TCached1, TCached2, TCached3, TNonCached>
Implements
System.IEquatable<Deconstructed<TCached1, TCached2, TCached3, TNonCached>>
Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public sealed class Deconstructed<TCached1, TCached2, TCached3, TNonCached> : ValueType, IEquatable<Deconstructed<TCached1, TCached2, TCached3, 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.

TNonCached

Type of the non-cached component.

Constructors

Deconstructed(TCached1, TCached2, TCached3, TNonCached)

Creates the deconstructed cached value;

Declaration
public Deconstructed(TCached1 cached1, TCached2 cached2, TCached3 cached3, TNonCached nonCached)
Parameters
Type Name Description
TCached1 cached1

The first cached component.

TCached2 cached2

The second cached component.

TCached3 cached3

The third 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

NonCached

The non-cached component.

Declaration
public TNonCached NonCached { get; }
Property Value
Type Description
TNonCached

Methods

Equals(Deconstructed<TCached1, TCached2, TCached3, TNonCached>)

Checks if two instances are equal.

Declaration
public bool Equals(Deconstructed<TCached1, TCached2, TCached3, TNonCached> other)
Parameters
Type Name Description
Deconstructed<TCached1, TCached2, TCached3, 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, TNonCached>, Deconstructed<TCached1, TCached2, TCached3, TNonCached>)

Checks if two instances are equal.

Declaration
public static bool operator ==(Deconstructed<TCached1, TCached2, TCached3, TNonCached> left, Deconstructed<TCached1, TCached2, TCached3, TNonCached> right)
Parameters
Type Name Description
Deconstructed<TCached1, TCached2, TCached3, TNonCached> left

The left instance.

Deconstructed<TCached1, TCached2, TCached3, TNonCached> right

The right instance.

Returns
Type Description
System.Boolean

true if equal, false otherwise.

Inequality(Deconstructed<TCached1, TCached2, TCached3, TNonCached>, Deconstructed<TCached1, TCached2, TCached3, TNonCached>)

Checks if two instances are not equal.

Declaration
public static bool operator !=(Deconstructed<TCached1, TCached2, TCached3, TNonCached> left, Deconstructed<TCached1, TCached2, TCached3, TNonCached> right)
Parameters
Type Name Description
Deconstructed<TCached1, TCached2, TCached3, TNonCached> left

The left instance.

Deconstructed<TCached1, TCached2, TCached3, TNonCached> right

The right instance.

Returns
Type Description
System.Boolean

true if not equal, false otherwise.

Implements

System.IEquatable<>
In This Article
Back to top Generated by DocFX