public InstructionBlockChainCreator(MethodDefinition method, TypeReference aspectTypeDefinition, ModuleDefinition moduleDefinition, int aspectCounter)
        {
            _method = method;
            _aspectTypeDefinition = aspectTypeDefinition;
            _moduleDefinition = moduleDefinition;
            _aspectCounter = aspectCounter;

            _referenceFinder = new ReferenceFinder(_moduleDefinition);
            _creator = new InstructionBlockCreator(_method, _referenceFinder);
        }
 public InstructionBlockCreator(MethodDefinition method, ReferenceFinder referenceFinder)
 {
     _method = method;
     _referenceFinder = referenceFinder;
     _processor = _method.Body.GetILProcessor();
 }
Beispiel #3
0
 public InstructionBlockCreator(MethodDefinition method, ReferenceFinder referenceFinder)
 {
     _method          = method;
     _referenceFinder = referenceFinder;
     _processor       = _method.Body.GetILProcessor();
 }