[Refactor] Use collection expressions.

This commit is contained in:
2024-05-01 04:39:38 +01:00
parent f7ca79b09e
commit 134ce7041e
667 changed files with 12936 additions and 13750 deletions

View File

@@ -100,8 +100,8 @@ public sealed class ImageVerifyViewModel : ViewModelBase
StopCommand = ReactiveCommand.Create(ExecuteStopCommand);
_inputFormat = inputFormat;
_cancel = false;
ErrorList = new ObservableCollection<LbaModel>();
UnknownList = new ObservableCollection<LbaModel>();
ErrorList = [];
UnknownList = [];
VerifyImageEnabled = true;
VerifySectorsEnabled = true;
CloseVisible = true;
@@ -447,8 +447,8 @@ public sealed class ImageVerifyViewModel : ViewModelBase
if(VerifySectorsChecked)
{
var chkStopwatch = new Stopwatch();
List<ulong> failingLbas = new();
List<ulong> unknownLbas = new();
List<ulong> failingLbas = [];
List<ulong> unknownLbas = [];
await Dispatcher.UIThread.InvokeAsync(() =>
{