Skip to content

Overload_CodeJam_Collections_EnumerableExtensions_FirstOrDefault

Andrew Koryavchenko edited this page Jul 4, 2017 · 4 revisions

EnumerableExtensions.FirstOrDefault Method

Overload List

 

Name Description
Public methodStatic member FirstOrDefault(T)(IEnumerable(T), T) Returns first element, or specified defaultValue, if sequence is empty.
Public methodStatic member FirstOrDefault(T)(IEnumerable(T), T, Func(T, Boolean)) Returns the first element of the sequence that satisfies a condition or a specified defaultValue if no such element is found.
  Back to Top

See Also

Reference

EnumerableExtensions Class
CodeJam.Collections Namespace

Clone this wiki locally