SingleExtension Class

Single extension.

Definition

Namespace: MoreLinq.Extensions
Assembly: MoreLinq (in MoreLinq.dll) Version: 3.4.0+b99a6a8cc504caf2d48372fe54a2f8116c59cd0c
C#
public static class SingleExtension
Inheritance
Object    SingleExtension

Methods

SingleT Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.

See Also