From 9cf54c1f2d143c239b8849c4823b62bf40fe61cb Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 9 Mar 2023 23:26:18 -0500 Subject: [PATCH] Create dummy class for protection library --- BinaryObjectScanner.Protection/_DUMMY.cs | 7 +++++++ BurnOutSharp/ScanningClasses.cs | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 BinaryObjectScanner.Protection/_DUMMY.cs diff --git a/BinaryObjectScanner.Protection/_DUMMY.cs b/BinaryObjectScanner.Protection/_DUMMY.cs new file mode 100644 index 00000000..55785198 --- /dev/null +++ b/BinaryObjectScanner.Protection/_DUMMY.cs @@ -0,0 +1,7 @@ +namespace BinaryObjectScanner.Protection +{ + /// + /// This class exists for reflection purposes and should not be used + /// + public sealed class _DUMMY { } +} diff --git a/BurnOutSharp/ScanningClasses.cs b/BurnOutSharp/ScanningClasses.cs index 26e43a84..e8173b3c 100644 --- a/BurnOutSharp/ScanningClasses.cs +++ b/BurnOutSharp/ScanningClasses.cs @@ -9,7 +9,6 @@ namespace BurnOutSharp /// /// Statically-generated lists of scanning classes /// - /// 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 /// private static IEnumerable InitCheckClasses() - => InitCheckClasses(Assembly.GetExecutingAssembly()).Concat(InitCheckClasses(typeof(BinaryObjectScanner.Protection.Zzxzz).Assembly)); + => InitCheckClasses(Assembly.GetExecutingAssembly()).Concat(InitCheckClasses(typeof(BinaryObjectScanner.Protection._DUMMY).Assembly)); /// /// Initialize all implementations of a type