Skip to content

Commit 03d1126

Browse files
committed
Use IReadOnlyList instead of IEnumerable.
1 parent 33985fb commit 03d1126

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ReClass.NET/Forms/MainForm.Functions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics;
44
using System.Diagnostics.Contracts;
@@ -254,10 +254,10 @@ private void LoadAllSymbolsForCurrentProcess()
254254

255255
int index = 0;
256256

257-
var progress = new Progress<Tuple<Module, IEnumerable<Module>>>(
257+
var progress = new Progress<Tuple<Module, IReadOnlyList<Module>>>(
258258
report =>
259259
{
260-
infoToolStripStatusLabel.Text = $"[{++index}/{report.Item2.Count()}] Loading symbols for module: {report.Item1.Name}";
260+
infoToolStripStatusLabel.Text = $"[{++index}/{report.Item2.Count}] Loading symbols for module: {report.Item1.Name}";
261261
}
262262
);
263263

ReClass.NET/Memory/RemoteProcess.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ public IntPtr ParseAddress(string addressFormula)
744744
/// <param name="progress">The progress reporter is called for every module. Can be null.</param>
745745
/// <param name="token">The token used to cancel the task.</param>
746746
/// <returns>The task.</returns>
747-
public Task LoadAllSymbolsAsync(IProgress<Tuple<Module, IEnumerable<Module>>> progress, CancellationToken token)
747+
public Task LoadAllSymbolsAsync(IProgress<Tuple<Module, IReadOnlyList<Module>>> progress, CancellationToken token)
748748
{
749749
List<Module> copy;
750750
lock (modules)
@@ -762,7 +762,7 @@ public Task LoadAllSymbolsAsync(IProgress<Tuple<Module, IEnumerable<Module>>> pr
762762
{
763763
token.ThrowIfCancellationRequested();
764764

765-
progress?.Report(Tuple.Create<Module, IEnumerable<Module>>(module, copy));
765+
progress?.Report(Tuple.Create<Module, IReadOnlyList<Module>>(module, copy));
766766

767767
Symbols.TryResolveSymbolsForModule(module);
768768
}

0 commit comments

Comments
 (0)