Show / Hide Table of Contents

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
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class BiMap<U, V> : Object
Type Parameters
Name Description
U
V

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
Type Description
V

Item[V]

Declaration
public U this[V v] { get; }
Parameters
Type Name Description
V v
Property Value
Type Description
U

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
In This Article
Back to top Generated by DocFX