Create dummy class for protection library

This commit is contained in:
Matt Nadareski
2023-03-09 23:26:18 -05:00
parent e118418a23
commit 9cf54c1f2d
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
namespace BinaryObjectScanner.Protection
{
/// <summary>
/// This class exists for reflection purposes and should not be used
/// </summary>
public sealed class _DUMMY { }
}

View File

@@ -9,7 +9,6 @@ namespace BurnOutSharp
/// <summary>
/// Statically-generated lists of scanning classes
/// </summary>
/// TODO: Create a dummy class to use instead of Zzxzz
internal static class ScanningClasses
{
#region Public Collections
@@ -121,7 +120,7 @@ namespace BurnOutSharp
/// Initialize all implementations of a type
/// </summary>
private static IEnumerable<T> InitCheckClasses<T>()
=> InitCheckClasses<T>(Assembly.GetExecutingAssembly()).Concat(InitCheckClasses<T>(typeof(BinaryObjectScanner.Protection.Zzxzz).Assembly));
=> InitCheckClasses<T>(Assembly.GetExecutingAssembly()).Concat(InitCheckClasses<T>(typeof(BinaryObjectScanner.Protection._DUMMY).Assembly));
/// <summary>
/// Initialize all implementations of a type