SingleOrDefaultExtension Class
SingleOrDefault extension.
Namespace: MoreLinq.ExtensionsAssembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
public static class SingleOrDefaultExtension
<ExtensionAttribute>
Public NotInheritable Class SingleOrDefaultExtension
[ExtensionAttribute]
public ref class SingleOrDefaultExtension abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type SingleOrDefaultExtension = class end
- Inheritance
- Object SingleOrDefaultExtension
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.
|