SingleOrDefaultExtension Class
SingleOrDefault extension.
Namespace: MoreLinq.ExtensionsAssembly: MoreLinq (in MoreLinq.dll) Version: 3.4.0+b99a6a8cc504caf2d48372fe54a2f8116c59cd0c
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.
|