Browse Source

Changed modifiers for injected non-client implementable method (#16626)

* Changed modifiers for injected non-client implementable method

* Keep internal modifier
Nikita Tsukanov 1 year ago
parent
commit
135b5984b1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      nukebuild/RefAssemblyGenerator.cs

+ 1 - 0
nukebuild/RefAssemblyGenerator.cs

@@ -84,6 +84,7 @@ public class RefAssemblyGenerator
             type.Methods.Add(new MethodDefinition(
             type.Methods.Add(new MethodDefinition(
                 "(This interface or abstract class is -not- implementable by user code !)",
                 "(This interface or abstract class is -not- implementable by user code !)",
                 MethodAttributes.Assembly
                 MethodAttributes.Assembly
+                | MethodAttributes.Virtual
                 | MethodAttributes.Abstract
                 | MethodAttributes.Abstract
                 | MethodAttributes.NewSlot
                 | MethodAttributes.NewSlot
                 | MethodAttributes.HideBySig, type.Module.TypeSystem.Void));
                 | MethodAttributes.HideBySig, type.Module.TypeSystem.Void));