3 references to FirstOrDefault
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
230
return source.Cast<T?>().
FirstOrDefault
(static (v, predicate) => predicate(v!.Value), predicate);
246
return source.Cast<T?>().
FirstOrDefault
(static (v, arg) => arg.predicate(v!.Value, arg.arg), (predicate, arg));
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
159
return _many.
FirstOrDefault
(predicate, arg);