IPortionCollection

IPortionCollection interface

Represents a collection of a portions.

public interface IPortionCollection : IEnumerable<IPortion>

Properties

NameDescription
AsIEnumerable { get; }Returns IEnumerable interface. Read-only IEnumerable.
Count { get; }Gets the number of elements actually contained in the collection. Read-only Int32.
Item { get; }Gets the element at the specified index.

Methods

NameDescription
Add(IPortion)Adds a Portion to the end of collection.
Clear()Removes all elements from the collection.
Contains(IPortion)Determines whether the ICollection contains a specific value.
IndexOf(IPortion)Determines the index of a specific portion in collection.
Insert(int, IPortion)Inserts a Portion into the collection at the specified index.
Remove(IPortion)Removes the first occurrence of a specific object from the ICollection.
RemoveAt(int)Removes the element at the specified index of the collection.

See Also