Show / Hide Table of Contents

Class CollectionExtensions

Class that provides extension methods to Collection

Inheritance
object
CollectionExtensions
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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.

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
ArgumentNullException

Thrown if items or collection is .

  • View Source
Back to top Generated by DocFX