-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Collections_CollectionExtensions_AddRange__1_1
andrewvk edited this page Mar 30, 2016
·
7 revisions
[This is preliminary documentation and is subject to change.]
Adds the elements to the end of the ICollection(T).
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static void AddRange<T>(
[NotNullAttribute] this ICollection<T> source,
[NotNullAttribute] IList<T> items
)
VB
<ExtensionAttribute>
Public Shared Sub AddRange(Of T) (
<NotNullAttribute> source As ICollection(Of T),
<NotNullAttribute> items As IList(Of T)
)
F#
[<ExtensionAttribute>]
static member AddRange :
[<NotNullAttribute>] source : ICollection<'T> *
[<NotNullAttribute>] items : IList<'T> -> unit
- source
- Type: System.Collections.Generic.ICollection(T)
The collection to add the elements to. - items
- Type: System.Collections.Generic.IList(T)
The items to add to the collection.
- T
- The type of the items that the collection contains.
In Visual Basic and C#, you can call this method as an instance method on any object of type ICollection(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).
CollectionExtensions Class
AddRange Overload
CodeJam.Collections Namespace