CollectionExtensionsPopulateFromT Method (IListT, IEnumerableT) |
Appends a collection with the values from the target enumerable.
Namespace:
Xcalibur.Extensions
Assembly:
Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax public static IList<T> PopulateFrom<T>(
this IList<T> collection,
IEnumerable<T> range
)
<ExtensionAttribute>
Public Shared Function PopulateFrom(Of T) (
collection As IList(Of T),
range As IEnumerable(Of T)
) As IList(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static IList<T>^ PopulateFrom(
IList<T>^ collection,
IEnumerable<T>^ range
)
[<ExtensionAttribute>]
static member PopulateFrom :
collection : IList<'T> *
range : IEnumerable<'T> -> IList<'T>
Parameters
- collection
- Type: System.Collections.GenericIListT
The collection. - range
- Type: System.Collections.GenericIEnumerableT
The range.
Type Parameters
- T
Return Value
Type:
IListTUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListT. 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