Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RCS1077 - FirstOrDefault() is faster than Find() with .NET 9 #1531

@symbiogenesis

Description

@symbiogenesis

With .NET 8 and below, the recommendation to use Find() is correct.

But with .NET 9 or later, LINQ is actually faster.

https://www.youtube.com/watch?v=UfjRoshu23w&t=575s

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions