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

Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.

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