Struct Map<TLeft, TRight>.AlternateLeftLookup<TAlternateLeft>
Provides a type that can be used to perform operations on a Map<TLeft, TRight> using TAlternateLeft instead of
TLeft.
Namespace: Singulink.Collections
Assembly: Singulink.Collections.dll
Syntax
public readonly struct Map<TLeft, TRight>.AlternateLeftLookup<TAlternateLeft> where TAlternateLeft : notnull, allows ref structType Parameters
| Name | Description | 
|---|---|
| TAlternateLeft | 
Properties
| Name | Description | 
|---|---|
| this[TAlternateLeft] | Gets or sets the right value associated with the specified alternate left value. | 
| LeftComparer | Gets the alternate equality comparer used for left values. | 
| Map | Gets the map associated with this alternate lookup. | 
Methods
| Name | Description | 
|---|---|
| Contains(TAlternateLeft, TRight) | Gets a value indicating if the map contains an association between the specified alternate left value and right value. | 
| Contains(TAlternateLeft, TRight, out TLeft) | Gets a value indicating if the map contains an association between the specified alternate left value and right value. | 
| ContainsLeft(TAlternateLeft) | Determines whether the map contains the specified alternate left value. | 
| ContainsLeft(TAlternateLeft, out TLeft) | Determines whether the map contains the specified alternate left value. | 
| Remove(TAlternateLeft, TRight) | Removes an association from the map between the specified alternate left and alternate right value if they currently map to each other. | 
| Remove(TAlternateLeft, TRight, out TLeft) | Removes an association from the map between the specified alternate left and alternate right value if they currently map to each other. | 
| RemoveLeft(TAlternateLeft) | Removes the mapping with the specified alternate left value. | 
| RemoveLeft(TAlternateLeft, out TLeft, out TRight) | Removes the mapping with the specified alternate left value. | 
| Set(TAlternateLeft, TRight) | Sets an association in the map between the specified alternate left value and right value, overriding any existing associations these values had. | 
| Set(TAlternateLeft, TRight, out TLeft) | Sets an association in the map between the specified alternate left value and right value, overriding any existing associations these values had. | 
| TryAdd(TAlternateLeft, TRight) | Attempts to add an association to map between the specified alternate left value and right value. | 
| TryAdd(TAlternateLeft, TRight, out TLeft) | Attempts to add an association to map between the specified alternate left value and right value. | 
| TryGetRightValue(TAlternateLeft, out TLeft, out TRight) | Gets the right value associated with the specified alternate left value. | 
| TryGetRightValue(TAlternateLeft, out TRight) | Gets the right value associated with the specified alternate left value. | 
