Back to Devexpress

EnumerableExtensions.IsSingle<T>(IEnumerable<T>) Method

maui-devexpress-dot-maui-dot-mvvm-dot-enumerableextensions-dot-issingle-1-x28-system-dot-collections-dot-generic-dot-ienumerable-0-x29.md

latest1.4 KB
Original Source

EnumerableExtensions.IsSingle<T>(IEnumerable<T>) Method

Determines whether the specified IEnumerable<T> collection contains only one element.

Namespace : DevExpress.Maui.Mvvm

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
public static bool IsSingle<T>(
    this IEnumerable<T> source
)

Parameters

NameTypeDescription
sourceIEnumerable<T>

The source item collection.

|

Type Parameters

NameDescription
T

The type of elements stored in the source collection.

|

Returns

TypeDescription
Boolean

true if the specified IEnumerable<T> collection includes only one element; otherwise, false.

|

See Also

EnumerableExtensions Class

EnumerableExtensions Members

DevExpress.Maui.Mvvm Namespace