IReadOnlyCollection<T> 接口

定义

对集合公开 Count 属性的简单接口

generic <typename T>
public interface class IReadOnlyCollection : Microsoft::VisualStudio::GraphModel::IHasGraphOwner, System::Collections::Generic::IEnumerable<T>
public interface IReadOnlyCollection<T> : Microsoft.VisualStudio.GraphModel.IHasGraphOwner, System.Collections.Generic.IEnumerable<T>
type IReadOnlyCollection<'T> = interface
    interface seq<'T>
    interface IEnumerable
    interface IHasGraphOwner
Public Interface IReadOnlyCollection(Of T)
Implements IEnumerable(Of T), IHasGraphOwner

类型参数

T
派生
实现

属性

Count

对集合公开 Count 属性的简单接口

Owner

获取此对象所属的 Graph。

(继承自 IHasGraphOwner)

扩展方法

EmptyIfNull<T>(IEnumerable<T>)

如果枚举不为 null,则返回此枚举。 如果为 null,则返回空枚举。

适用于