Table of Contents

Class DoubleKeyDictionary<K, T, V>

Namespace
HelixToolkit
Assembly
HelixToolkit.dll

A double key dictionary.

public class DoubleKeyDictionary<K, T, V> : IEnumerable<DoubleKeyPairValue<K, T, V>>, IEnumerable, IEquatable<DoubleKeyDictionary<K, T, V>> where K : notnull where T : notnull

Type Parameters

K

The first key type.

T

The second key type.

V

The value type.

Inheritance
DoubleKeyDictionary<K, T, V>
Implements
Inherited Members
Extension Methods

Remarks

Properties

this[K, T]

Gets or sets the value with the specified indices.

public V this[K index1, T index2] { get; set; }

Parameters

index1 K
index2 T

Property Value

V

Values

Gets the values.

public IEnumerable<V> Values { get; }

Property Value

IEnumerable<V>

The values.

Methods

Add(K, T, V)

Adds the specified key.

public void Add(K key1, T key2, V value)

Parameters

key1 K

The key1.

key2 T

The key2.

value V

The value.

Clear()

Clears this dictionary.

public void Clear()

ContainsKey(K, T)

Determines whether the specified dictionary contains the key.

public bool ContainsKey(K index1, T index2)

Parameters

index1 K

The index1.

index2 T

The index2.

Returns

bool

true if the specified index1 contains key; otherwise, false.

Equals(DoubleKeyDictionary<K, T, V>?)

Equalses the specified other.

public bool Equals(DoubleKeyDictionary<K, T, V>? other)

Parameters

other DoubleKeyDictionary<K, T, V>

The other.

Returns

bool

The equals.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetEnumerator()

Gets the enumerator.

public IEnumerator<DoubleKeyPairValue<K, T, V>> GetEnumerator()

Returns

IEnumerator<DoubleKeyPairValue<K, T, V>>

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Remove(K, T)

Removes the specified key.

public void Remove(K key1, T key2)

Parameters

key1 K

The key1.

key2 T

The key2.

TryGetValue(K, T, out V)

public bool TryGetValue(K key1, T key2, out V obj)

Parameters

key1 K
key2 T
obj V

Returns

bool