Show / Hide Table of Contents

Class IReadOnlyDictionaryExtensions

Inheritance
Object
IReadOnlyDictionaryExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Mangrove.MetricSetTransformers.Extensions
Assembly: MetricSetTransformers.dll
Syntax
public static class IReadOnlyDictionaryExtensions

Methods

View Source

CombineWith<T1, T2>(IReadOnlyDictionary<T1, T2>, IDictionary<T1, T2>)

Merges fromDict onto the toDict. In particular, any values in toDict for the keys present in fromDict will be over-written with the values from the former.

Declaration
public static Dictionary<T1, T2> CombineWith<T1, T2>(this IReadOnlyDictionary<T1, T2> toDict, IDictionary<T1, T2> fromDict)
Parameters
Type Name Description
IReadOnlyDictionary<T1, T2> toDict
IDictionary<T1, T2> fromDict
Returns
Type Description
Dictionary<T1, T2>
Type Parameters
Name Description
T1
T2
View Source

ToDictionary<T1, T2>(IReadOnlyDictionary<T1, T2>)

Convert an IReadOnlyDictionary to a regular dictionary.

Declaration
public static Dictionary<T1, T2> ToDictionary<T1, T2>(this IReadOnlyDictionary<T1, T2> dict)
Parameters
Type Name Description
IReadOnlyDictionary<T1, T2> dict
Returns
Type Description
Dictionary<T1, T2>
Type Parameters
Name Description
T1
T2
  • View Source
Back to top Generated by DocFX