Click or drag to resize
DataHelperMergeT, K, V Method
Merges two objects implementing the IDictionary interface of type T with key of type K and value of type V.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static T Merge<T, K, V>(
	T obj1,
	T obj2,
	bool updateValue
)
where T : class, Object, IDictionary<K, V>

Parameters

obj1
Type: T
First object
obj2
Type: T
Second object
updateValue
Type: SystemBoolean
Indicates if value of item with same key in obj1 should be overwritten

Type Parameters

T
Type of the object to merge
K
Type of the key
V
Type of the value

Return Value

Type: T
See Also