Skip to content

M_CodeJam_Collections_CollectionExtensions_AddRange__1_1

andrewvk edited this page Mar 30, 2016 · 7 revisions

CollectionExtensions.AddRange(T) Method (ICollection(T), IList(T))

[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)

Syntax

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 

Parameters

 

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.

Type Parameters

 

T
The type of the items that the collection contains.

Usage Note

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).

See Also

Reference

CollectionExtensions Class
AddRange Overload
CodeJam.Collections Namespace

Clone this wiki locally