[Refactor] Use static lambdas in LINQ queries for improved performance

This commit is contained in:
2025-11-24 03:00:06 +00:00
parent 5fe7f574d6
commit 04c45e69fa
126 changed files with 971 additions and 929 deletions

View File

@@ -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;
}