IPortionCollection

IPortionCollection 接口

表示 Portion 的集合。

public interface IPortionCollection : IEnumerable<IPortion>

属性

名称描述
AsIEnumerable { get; }返回 IEnumerable 接口。只读 IEnumerable。
Count { get; }获取集合实际包含的元素数量。只读 Int32。
Item { get; }获取指定索引处的元素。

方法

名称描述
Add(IPortion)向集合末尾添加一个 Portion。
Clear()从集合中移除所有元素。
Contains(IPortion)确定 ICollection 是否包含特定值。
IndexOf(IPortion)确定集合中特定 Portion 的索引。
Insert(int, IPortion)在指定索引处向集合插入一个 Portion。
Remove(IPortion)从 ICollection 中移除特定对象的第一次出现。
RemoveAt(int)移除集合中指定索引处的元素。

另见