Small perf improvement in LINQ
This commit is contained in:
@@ -39,7 +39,7 @@ namespace QuestPDF.Infrastructure
|
||||
|
||||
public DocumentLocation? GetLocation(string name)
|
||||
{
|
||||
return Locations.FirstOrDefault(x => x.Name == name);
|
||||
return Locations.Find(x => x.Name == name);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user