Click or drag to resize

SingleOrDefaultExtension Class

SingleOrDefault extension.
Inheritance Hierarchy
SystemObject
  MoreLinq.ExtensionsSingleOrDefaultExtension

Namespace:  MoreLinq.Extensions
Assembly:  MoreLinq (in MoreLinq.dll) Version: 3.0.0
Syntax
public static class SingleOrDefaultExtension

The SingleOrDefaultExtension type exposes the following members.

Methods
  NameDescription
Public methodStatic memberSingleOrDefaultT
Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
Top
See Also