Skip to content

Commit e9689c5

Browse files
committed
Changed IList to IReadOnlyList.
1 parent 0dce01e commit e9689c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ReClass.NET/Memory/Disassembler.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public Disassembler(CoreFunctionsManager coreFunctions)
2727
/// <param name="address">The address of the code.</param>
2828
/// <param name="length">The length of the code in bytes.</param>
2929
/// <returns>A list of <see cref="DisassembledInstruction"/>.</returns>
30-
public IList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess process, IntPtr address, int length)
30+
public IReadOnlyList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess process, IntPtr address, int length)
3131
{
3232
Contract.Requires(process != null);
3333
Contract.Ensures(Contract.Result<IList<DisassembledInstruction>>() != null);
@@ -41,7 +41,7 @@ public IList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess proces
4141
/// <param name="length">The length of the code in bytes.</param>
4242
/// <param name="maxInstructions">The maximum number of instructions to disassemble. If <paramref name="maxInstructions"/> is -1, all available instructions get returned.</param>
4343
/// <returns>A list of <see cref="DisassembledInstruction"/>.</returns>
44-
public IList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess process, IntPtr address, int length, int maxInstructions)
44+
public IReadOnlyList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess process, IntPtr address, int length, int maxInstructions)
4545
{
4646
Contract.Requires(process != null);
4747
Contract.Ensures(Contract.Result<IList<DisassembledInstruction>>() != null);
@@ -56,7 +56,7 @@ public IList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess proces
5656
/// <param name="virtualAddress">The virtual address of the code. This allows to decode instructions located anywhere in memory even if they are not at their original place.</param>
5757
/// <param name="maxInstructions">The maximum number of instructions to disassemble. If <paramref name="maxInstructions"/> is -1, all available instructions get returned.</param>
5858
/// <returns>A list of <see cref="DisassembledInstruction"/>.</returns>
59-
public IList<DisassembledInstruction> DisassembleCode(byte[] data, IntPtr virtualAddress, int maxInstructions)
59+
public IReadOnlyList<DisassembledInstruction> DisassembleCode(byte[] data, IntPtr virtualAddress, int maxInstructions)
6060
{
6161
Contract.Requires(data != null);
6262
Contract.Ensures(Contract.Result<IList<DisassembledInstruction>>() != null);
@@ -89,7 +89,7 @@ public IList<DisassembledInstruction> DisassembleCode(byte[] data, IntPtr virtua
8989
/// <param name="address">The address of the code.</param>
9090
/// <param name="maxLength">The maximum maxLength of the code.</param>
9191
/// <returns>A list of <see cref="DisassembledInstruction"/> which belong to the function.</returns>
92-
public IList<DisassembledInstruction> RemoteDisassembleFunction(RemoteProcess process, IntPtr address, int maxLength)
92+
public IReadOnlyList<DisassembledInstruction> RemoteDisassembleFunction(RemoteProcess process, IntPtr address, int maxLength)
9393
{
9494
Contract.Requires(process != null);
9595
Contract.Ensures(Contract.Result<IEnumerable<DisassembledInstruction>>() != null);
@@ -103,7 +103,7 @@ public IList<DisassembledInstruction> RemoteDisassembleFunction(RemoteProcess pr
103103
/// <param name="data">The data to disassemble.</param>
104104
/// <param name="virtualAddress">The virtual address of the code. This allows to decode instructions located anywhere in memory even if they are not at their original place.</param>
105105
/// <returns>A list of <see cref="DisassembledInstruction"/> which belong to the function.</returns>
106-
public IList<DisassembledInstruction> DisassembleFunction(byte[] data, IntPtr virtualAddress)
106+
public IReadOnlyList<DisassembledInstruction> DisassembleFunction(byte[] data, IntPtr virtualAddress)
107107
{
108108
Contract.Requires(data != null);
109109
Contract.Ensures(Contract.Result<IEnumerable<DisassembledInstruction>>() != null);

0 commit comments

Comments
 (0)