'Declaration<ExtensionAttribute()> Public Shared Sub SetRange(Of T)( _ ByVal collection As ICollection(Of T), _ ByVal source As IEnumerable(Of T) _ )
'UsageDim collection As ICollection(Of T) Dim source As IEnumerable(Of T) ICollectionExtension.SetRange(Of T)(collection, source)
[Extension()] public static void SetRange<T>( ICollection<T> collection, IEnumerable<T> source )
[Extension()] public: static void SetRangegeneric<typename T> ( ICollection<T^>^ collection, IEnumerable<T^>^ source )
Parameters
- collection
- The collection whose contents will be replaced. Must not be
null.The value of this parameter cannot be
null(Nothingin Visual Basic).The individual elements of the parameter value can be
null(Nothingin Visual Basic). - source
- The source of elements to populate the collection. Must not be
null.The value of this parameter cannot be
null(Nothingin Visual Basic).
Type Parameters
- T
- The type of elements in the collection.