mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-20 15:55:15 +00:00
Create dummy class for protection library
This commit is contained in:
7
BinaryObjectScanner.Protection/_DUMMY.cs
Normal file
7
BinaryObjectScanner.Protection/_DUMMY.cs
Normal 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 { }
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user