You are here: Symbol Reference > Stimulsoft.Base.Json.Utilities.LinqBridge Namespace > Enumerable Class > Enumerable Methods > SingleOrDefault Method > SingleOrDefault Method (this IEnumerable<TSource>)
Stimulsoft Reports Class Reference
ContentsIndexHome
PreviousUpNext
Enumerable.SingleOrDefault Method (this IEnumerable<TSource>)

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.

Syntax
C++
C#
Visual Basic
public: TSource SingleOrDefault<TSource>( this IEnumerable<TSource> source );
Made with Doc-O-Matic.
What do you think about this topic? Send feedback!
Copyright (c) 2017. All rights reserved.