public static bool Implements(this TypeDefinition typeDefinition, System.Type type) { if (type.IsInterface == false) { throw new InvalidOperationException("The <type> argument (" + type.Name + ") must be an Interface type."); } var referenceFinder = new ReferenceFinder(typeDefinition.Module); var baseTypeDefinition = referenceFinder.GetTypeReference(type); return typeDefinition.Implements(baseTypeDefinition); }
public MethodDecorator(ModuleDefinition moduleDefinition) { this._referenceFinder = new ReferenceFinder(moduleDefinition); }
public MethodDecorator(ModuleDefinition moduleDefinition, XElement config) { ReadXmlConfig(config); this._referenceFinder = new ReferenceFinder(moduleDefinition); }