Click or drag to resize

ExtensionMethodsAddRangeT Method (ObservableCollectionT, ObservableCollectionT)

Adds a range of variable into a collection. The variables added into the collection is a copy. its reference is independent to the original one.

Namespace:  Hummingbird.TestFramework
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public static void AddRange<T>(
	this ObservableCollection<T> this,
	ObservableCollection<T> another
)

Parameters

this
Type: System.Collections.ObjectModelObservableCollectionT
The collection where elements will be added to.
another
Type: System.Collections.ObjectModelObservableCollectionT
The collection where its elements will be added from.

Type Parameters

T
The Type of the ObservableCollectionT

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ObservableCollectionT. 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).
See Also