GeneralUtilities.HasSingleElement<T>(ICollection<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>