Show / Hide Table of Contents

Class IntAlias<T>

Integer alias of an object of a given generic type.

Inheritance
System.Object
IntAlias<T>
Namespace: Edgar.Legacy.GeneralAlgorithms.DataStructures.Common
Assembly: Edgar.dll
Syntax
public class IntAlias<T> : Object
Type Parameters
Name Description
T
Remarks

Useful when array indexing is much faster than using a dictionary.

Constructors

IntAlias(Int32, T)

Declaration
public IntAlias(int alias, T value)
Parameters
Type Name Description
System.Int32 alias
T value

Properties

Alias

Integer alias of the Value.

Declaration
public int Alias { get; }
Property Value
Type Description
System.Int32

Value

Real value.

Declaration
public T Value { get; }
Property Value
Type Description
T

Methods

Equals(IntAlias<T>)

Declaration
protected bool Equals(IntAlias<T> other)
Parameters
Type Name Description
IntAlias<T> other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Operators

Equality(IntAlias<T>, IntAlias<T>)

Declaration
public static bool operator ==(IntAlias<T> left, IntAlias<T> right)
Parameters
Type Name Description
IntAlias<T> left
IntAlias<T> right
Returns
Type Description
System.Boolean

Inequality(IntAlias<T>, IntAlias<T>)

Declaration
public static bool operator !=(IntAlias<T> left, IntAlias<T> right)
Parameters
Type Name Description
IntAlias<T> left
IntAlias<T> right
Returns
Type Description
System.Boolean
Back to top Generated by DocFX