METHOD
Enumerable.First
Returns first matching element; throws when none match.
Formal Syntax & Structure
csharp syntaxcsharp
source.First(predicate)Working Example
Example Snippetcsharp
using System;using System.Linq;int n = new[] {1,2}.First(x => x > 1);