CollectionExtensionsMergeT, TKey, TValue(T, IDictionaryTKey, TValue) Method
Merges elements of multiple dictionaries into a single dictionary with no duplicate key values overwritten.
Namespace: Gemstone.Collections.CollectionExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.147 -- Release Build+759c9d29b79c81f10905de8f58b653be932045f0
public static T Merge<T, TKey, TValue>(
this T source,
params IDictionary<TKey, TValue>[] others
)
where T : new(), Object, IDictionary<TKey, TValue>
<ExtensionAttribute>
Public Shared Function Merge(Of T As {New, Object, IDictionary(Of TKey, TValue)}, TKey, TValue) (
source As T,
ParamArray others As IDictionary(Of TKey, TValue)()
) As T
public:
[ExtensionAttribute]
generic<typename T, typename TKey, typename TValue>
where T : gcnew(), Object, IDictionary<TKey, TValue>
static T Merge(
T source,
... array<IDictionary<TKey, TValue>^>^ others
)
JavaScript does not support generic types or methods.
- source T
- Source dictionary to merge with another dictionary.
- others IDictionaryTKey, TValue
- Other dictionaries to merge with source dictionary.
- T
- Type of IDictionaryTKey, TValue to merge.
- TKey
- Type of IDictionaryTKey, TValue keys.
- TValue
- Type of IDictionaryTKey, TValue values.
T
A merged collection of all unique dictionary elements, all
others merged left to the source with no duplicate
key values overwritten (i.e., first encountered key value pair is the one that remains in the returned merged dictionary).
In Visual Basic and C#, you can call this method as an instance method on any object of type
T. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).