你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

GeneralUtilities.HasSingleElement<T>(ICollection<T>) Method

Definition

public static bool HasSingleElement<T> (System.Collections.Generic.ICollection<T> collection);
static member HasSingleElement : System.Collections.Generic.ICollection<'T> -> bool
Public Function HasSingleElement(Of T) (collection As ICollection(Of T)) As Boolean

Type Parameters

T

Parameters

collection
ICollection<T>

Returns

Applies to