mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Use static lambdas in LINQ queries for improved performance
This commit is contained in:
@@ -122,7 +122,7 @@ public sealed class ExtentsUInt
|
||||
_backend.Add(new Tuple<uint, uint>(item, item));
|
||||
|
||||
// Sort
|
||||
_backend = _backend.OrderBy(t => t.Item1).ToList();
|
||||
_backend = _backend.OrderBy(static t => t.Item1).ToList();
|
||||
}
|
||||
|
||||
/// <summary>Adds a new extent</summary>
|
||||
@@ -210,7 +210,7 @@ public sealed class ExtentsUInt
|
||||
if(toAddTwo != null) _backend.Add(toAddTwo);
|
||||
|
||||
// Sort
|
||||
_backend = _backend.OrderBy(t => t.Item1).ToList();
|
||||
_backend = _backend.OrderBy(static t => t.Item1).ToList();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user