예제 #1
0
 public void Emit(OpCode opCode, MethodInfo param)
 {
     _forbidenInstructions.Emit(_ilGenerator, opCode, param);
 }
예제 #2
0
 public void Emit(OpCode opCode, ConstructorInfo param)
 {
     _sourceCodeWriter.MarkAndWriteLine(_ilGenerator,
                                        $"{opCode} ctor {param.DeclaringType.ToSimpleName()}({FormatParams(param.GetParameters())})");
     _forbidenInstructions.Emit(_ilGenerator, opCode, param);
 }