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:
@@ -98,7 +98,8 @@ public sealed partial class ScsiInfoViewModel : ViewModelBase
|
||||
|
||||
if(scsiMode.Value.Pages != null)
|
||||
{
|
||||
foreach(Modes.ModePage page in scsiMode.Value.Pages.OrderBy(t => t.Page).ThenBy(t => t.Subpage))
|
||||
foreach(Modes.ModePage page in scsiMode.Value.Pages.OrderBy(static t => t.Page)
|
||||
.ThenBy(static t => t.Subpage))
|
||||
{
|
||||
string pageNumberText = page.Subpage == 0
|
||||
? string.Format(UI.MODE_0, page.Page)
|
||||
@@ -437,7 +438,7 @@ public sealed partial class ScsiInfoViewModel : ViewModelBase
|
||||
|
||||
if(scsiEvpdPages != null)
|
||||
{
|
||||
foreach(KeyValuePair<byte, byte[]> page in scsiEvpdPages.OrderBy(t => t.Key))
|
||||
foreach(KeyValuePair<byte, byte[]> page in scsiEvpdPages.OrderBy(static t => t.Key))
|
||||
{
|
||||
var evpdPageTitle = "";
|
||||
string evpdDecodedPage;
|
||||
|
||||
Reference in New Issue
Block a user