SingleOrDefaultExtension Class |
SingleOrDefault extension.
Inheritance Hierarchy SystemObject
MoreLinq.ExtensionsSingleOrDefaultExtension
Namespace:
MoreLinq.Extensions
Assembly:
MoreLinq (in MoreLinq.dll) Version: 3.3.1+b77df70598ab84c28cd43dcf74594024b6d575e1
Syntax public 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.
|
TopSee Also