SingleOrDefaultExtension Class |
SingleOrDefault extension.
Inheritance Hierarchy
Namespace:
MoreLinq.Extensions
Assembly:
MoreLinq (in MoreLinq.dll) Version: 3.1.0+ce7250fcae16725db4e3607598b1d4d8cb19957f
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