Skip to content

Commit 7122aa4

Browse files
committed
Use List where possible
1 parent cf62be3 commit 7122aa4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+69
-66
lines changed

BinaryObjectScanner/Interfaces/IPathCheck.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public interface IPathCheck
1414
/// Check a file path for protections based on path name
1515
/// </summary>
1616
/// <param name="path">Path to check for protection indicators</param>
17-
/// <param name="files">Enumerable of strings representing files in a directory</param>
17+
/// <param name="files">List of strings representing files in a directory</param>
1818
/// <remarks>This can do some limited content checking as well, but it's suggested to use a content check instead, if possible</remarks>
19-
List<string> CheckDirectoryPath(string path, IEnumerable<string>? files);
19+
List<string> CheckDirectoryPath(string path, List<string>? files);
2020

2121
/// <summary>
2222
/// Check a file path for protections based on path name

BinaryObjectScanner/Protection/AegiSoft.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class AegiSoft : IExecutableCheck<PortableExecutable>, IPathCheck
6868
}
6969

7070
/// <inheritdoc/>
71-
public List<string> CheckDirectoryPath(string path, IEnumerable<string>? files)
71+
public List<string> CheckDirectoryPath(string path, List<string>? files)
7272
{
7373
var matchers = new List<PathMatchSet>
7474
{

BinaryObjectScanner/Protection/AlphaDVD.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace BinaryObjectScanner.Protection
1616
public class AlphaDVD : IPathCheck
1717
{
1818
/// <inheritdoc/>
19-
public List<string> CheckDirectoryPath(string path, IEnumerable<string>? files)
19+
public List<string> CheckDirectoryPath(string path, List<string>? files)
2020
{
2121
var matchers = new List<PathMatchSet>
2222
{

BinaryObjectScanner/Protection/Bitpool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Protection
1313
public class Bitpool : IPathCheck
1414
{
1515
/// <inheritdoc/>
16-
public List<string> CheckDirectoryPath(string path, IEnumerable<string>? files)
16+
public List<string> CheckDirectoryPath(string path, List<string>? files)
1717
{
1818
var matchers = new List<PathMatchSet>
1919
{

BinaryObjectScanner/Protection/ByteShield.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public class ByteShield : IExecutableCheck<PortableExecutable>, IPathCheck
130130
}
131131

132132
/// <inheritdoc/>
133-
public List<string> CheckDirectoryPath(string path, IEnumerable<string>? files)
133+
public List<string> CheckDirectoryPath(string path, List<string>? files)
134134
{
135135
// TODO: Investigate reference to "bbz650.tmp" in "Byteshield.dll" (Redump entry 6236)
136136
// Files with the ".bbz" extension are associated with ByteShield, but the extenstion is known to be used in other places as well.

BinaryObjectScanner/Protection/CDDVDCops.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public class CDDVDCops : IContentCheck, IExecutableCheck<NewExecutable>, IExecut
182182
}
183183

184184
/// <inheritdoc/>
185-
public List<string> CheckDirectoryPath(string path, IEnumerable<string>? files)
185+
public List<string> CheckDirectoryPath(string path, List<string>? files)
186186
{
187187
// TODO: Original had "CDCOPS.DLL" required and all the rest in a combined OR
188188
var matchers = new List<PathMatchSet>

BinaryObjectScanner/Protection/CDGuard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class CDGuard : IExecutableCheck<PortableExecutable>, IPathCheck
5454
}
5555

5656
/// <inheritdoc/>
57-
public List<string> CheckDirectoryPath(string path, IEnumerable<string>? files)
57+
public List<string> CheckDirectoryPath(string path, List<string>? files)
5858
{
5959
var matchers = new List<PathMatchSet>
6060
{

BinaryObjectScanner/Protection/CDLock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class CDLock : IExecutableCheck<PortableExecutable>, IPathCheck
6262
}
6363

6464
/// <inheritdoc/>
65-
public List<string> CheckDirectoryPath(string path, IEnumerable<string>? files)
65+
public List<string> CheckDirectoryPath(string path, List<string>? files)
6666
{
6767
var matchers = new List<PathMatchSet>
6868
{

BinaryObjectScanner/Protection/CDProtector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace BinaryObjectScanner.Protection
1717
public class CDProtector : IPathCheck
1818
{
1919
/// <inheritdoc/>
20-
public List<string> CheckDirectoryPath(string path, IEnumerable<string>? files)
20+
public List<string> CheckDirectoryPath(string path, List<string>? files)
2121
{
2222
var matchers = new List<PathMatchSet>
2323
{

BinaryObjectScanner/Protection/CDX.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Protection
1212
public class CDX : IPathCheck
1313
{
1414
/// <inheritdoc/>
15-
public List<string> CheckDirectoryPath(string path, IEnumerable<string>? files)
15+
public List<string> CheckDirectoryPath(string path, List<string>? files)
1616
{
1717
// TODO: Verify if these are OR or AND
1818
var matchers = new List<PathMatchSet>

0 commit comments

Comments
 (0)