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:
@@ -520,7 +520,7 @@ partial class Dump
|
||||
|
||||
if(dcMode6?.Pages != null)
|
||||
{
|
||||
foreach(Modes.ModePage modePage in dcMode6.Value.Pages.Where(modePage =>
|
||||
foreach(Modes.ModePage modePage in dcMode6.Value.Pages.Where(static modePage =>
|
||||
modePage is { Page: 0x01, Subpage: 0x00 }))
|
||||
currentModePage = modePage;
|
||||
}
|
||||
@@ -783,7 +783,7 @@ partial class Dump
|
||||
|
||||
if(filesystems.Count > 0)
|
||||
{
|
||||
foreach(var filesystem in filesystems.Select(o => new
|
||||
foreach(var filesystem in filesystems.Select(static o => new
|
||||
{
|
||||
o.start,
|
||||
o.type
|
||||
|
||||
Reference in New Issue
Block a user