Class BidirectionalDictionary<TFirst, TSecond>
Inheritance
System.Object
BidirectionalDictionary<TFirst, TSecond>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Bayat.Json.Utilities
Assembly: Bayat.Json.Runtime.dll
Syntax
public class BidirectionalDictionary<TFirst, TSecond>
Type Parameters
Name | Description |
---|---|
TFirst | |
TSecond |
Constructors
| Improve this Doc View SourceBidirectionalDictionary()
Declaration
public BidirectionalDictionary()
BidirectionalDictionary(IEqualityComparer<TFirst>, IEqualityComparer<TSecond>)
Declaration
public BidirectionalDictionary(IEqualityComparer<TFirst> firstEqualityComparer, IEqualityComparer<TSecond> secondEqualityComparer)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEqualityComparer<TFirst> | firstEqualityComparer | |
System.Collections.Generic.IEqualityComparer<TSecond> | secondEqualityComparer |
BidirectionalDictionary(IEqualityComparer<TFirst>, IEqualityComparer<TSecond>, String, String)
Declaration
public BidirectionalDictionary(IEqualityComparer<TFirst> firstEqualityComparer, IEqualityComparer<TSecond> secondEqualityComparer, string duplicateFirstErrorMessage, string duplicateSecondErrorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEqualityComparer<TFirst> | firstEqualityComparer | |
System.Collections.Generic.IEqualityComparer<TSecond> | secondEqualityComparer | |
System.String | duplicateFirstErrorMessage | |
System.String | duplicateSecondErrorMessage |
Methods
| Improve this Doc View SourceSet(TFirst, TSecond)
Declaration
public void Set(TFirst first, TSecond second)
Parameters
Type | Name | Description |
---|---|---|
TFirst | first | |
TSecond | second |
TryGetByFirst(TFirst, out TSecond)
Declaration
public bool TryGetByFirst(TFirst first, out TSecond second)
Parameters
Type | Name | Description |
---|---|---|
TFirst | first | |
TSecond | second |
Returns
Type | Description |
---|---|
System.Boolean |
TryGetBySecond(TSecond, out TFirst)
Declaration
public bool TryGetBySecond(TSecond second, out TFirst first)
Parameters
Type | Name | Description |
---|---|---|
TSecond | second | |
TFirst | first |
Returns
Type | Description |
---|---|
System.Boolean |