Click or drag to resize

ExtensionMethodsMergeWith Method

Merges the collection with another one, ignoring the existent element.

Namespace:  Hummingbird.TestFramework
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public static void MergeWith(
	this IList<Variable> collection,
	IList<Variable> newitems
)

Parameters

collection
Type: System.Collections.GenericIListVariable
The collection to merge
newitems
Type: System.Collections.GenericIListVariable
Another collection to be merged

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListVariable. 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).
Remarks
If an element has already exists, it will not be added or replaced. The one exist already in the collection will be kept.
See Also