Show / Hide Table of Contents

Class CollectionExtensions

Class that provides extension methods to Collection

Inheritance
System.Object
CollectionExtensions
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Extensions
Assembly: Sartorius.SAF.dll
Syntax
public static class CollectionExtensions

Methods

View Source

AddRange<T, TCollection>(TCollection, IEnumerable<T>)

Adds a range of items to a collection.

Declaration
public static TCollection AddRange<T, TCollection>(this TCollection collection, IEnumerable<T> items)
    where TCollection : ICollection<T>
Parameters
Type Name Description
TCollection collection

The collection to add items to.

System.Collections.Generic.IEnumerable<T> items

The items to add to the collection.

Returns
Type Description
TCollection

The collection.

Type Parameters
Name Description
T

The type of objects within the collection.

TCollection

The type of the collection.

Exceptions
Type Condition
System.ArgumentNullException

Thrown if items or collection is .

  • View Source
Back to top Generated by DocFX