PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Collection<T>Advisable­Collection
Open sandboxFocus

AdvisableCollection<T> Constructor

AdvisableCollection(Int32)

Initializes a new instance of the AdvisableCollection<T> class that is empty and has the specified initial capacity.

Declaration
public AdvisableCollection(int capacity)
Parameters
Type Name Description
Int32 capacity

The initial collection capacity.

AdvisableCollection()

Initializes a new instance of the AdvisableCollection<T> class that is empty and has the default initial capacity.

Declaration
public AdvisableCollection()

AdvisableCollection(IEnumerable<T>)

Initializes a new instance of the AdvisableCollection<T> class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.

Declaration
public AdvisableCollection(IEnumerable<T> items)
Parameters
Type Name Description
IEnumerable<T> items

The collection whose elements are copied to the new AdvisableCollection<T>.

AdvisableCollection(SerializationInfo, StreamingContext)

Declaration
protected AdvisableCollection(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info
StreamingContext context