Ejemplo n.º 1
0
 public WeakEventWeaver(FieldReference eventDelegate, ModuleImporter moduleimporter)
 {
     _eventDelegate = eventDelegate.Resolve();
     _moduleimporter = moduleimporter;
     _closedGenericEventHandler = moduleimporter.GetClosedEventHandlerT(eventDelegate.FieldType.GetEventArgsType());
     _isGenericHandler = _closedGenericEventHandler.FullName.Equals(eventDelegate.FieldType.FullName);
 }
Ejemplo n.º 2
0
 public EventWeaver(ModuleDefinition moduleDef, ILogger logger)
 {
     _logger = logger;
     _moduleImporter = new ModuleImporter(moduleDef);
 }
Ejemplo n.º 3
0
 public EventWeaver(ModuleDefinition moduleDef, ILogger logger)
 {
     _logger         = logger;
     _moduleImporter = new ModuleImporter(moduleDef);
 }