SingleOrDefaultExtension Class |
SingleOrDefault extension.
Inheritance Hierarchy
Namespace:
MoreLinq.Extensions
Assembly:
MoreLinq (in MoreLinq.dll) Version: 3.0.0
Syntaxpublic static class SingleOrDefaultExtension
<ExtensionAttribute>
Public NotInheritable Class SingleOrDefaultExtension
[ExtensionAttribute]
public ref class SingleOrDefaultExtension abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type SingleOrDefaultExtension = class end
The SingleOrDefaultExtension type exposes the following members.
Methods
| Name | Description |
---|
  | SingleOrDefaultT |
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