Class BiMap<U, V>
Represents a 1:1 mapping between two types
Inheritance
System.Object
BiMap<U, V>
Implements
System.Collections.Generic.IEnumerable<System.ValueTuple<U, V>>
System.Collections.IEnumerable
Assembly: Sylves.dll
Syntax
public class BiMap<U, V> : Object
Type Parameters
Constructors
BiMap(IEnumerable<(U, V)>)
Declaration
public BiMap(IEnumerable<(U, V)> data)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.ValueTuple<U, V>> |
data |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Item[U]
Declaration
public V this[U u] { get; }
Parameters
Type |
Name |
Description |
U |
u |
|
Property Value
Item[V]
Declaration
public U this[V v] { get; }
Parameters
Type |
Name |
Description |
V |
v |
|
Property Value
Methods
GetEnumerator()
Declaration
public IEnumerator<(U, V)> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.ValueTuple<U, V>> |
|
Implements
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable