Table of Contents

Class DictionaryExtensions

Namespace
Supabase.Core.Extensions
Assembly
Supabase.Core.dll

Extensions for the Dictionary Classes

public static class DictionaryExtensions
Inheritance
DictionaryExtensions
Inherited Members

Methods

MergeLeft<T, K, V>(T, params IDictionary<K, V>[])

Merges two dictionaries, allowing overwrite priorities leftward.

Works in C#3/VS2008: Returns a new dictionary of this ... others merged leftward. Keeps the type of 'this', which must be default-instantiable. Example: result = map.MergeLeft(other1, other2, ...) From: https://stackoverflow.com/a/2679857/3629438

public static T MergeLeft<T, K, V>(this T me, params IDictionary<K, V>[] others) where T : IDictionary<K, V>, new()

Parameters

me T
others IDictionary<K, V>[]

Returns

T

Type Parameters

T
K
V