public static Collection <GenericParameter> GetGenericParameters( IGenericParameterProvider self, ref Collection <GenericParameter> collection, ModuleDefinition module) { return(Mixin.HasImage(module) ? module.Read(ref collection, self, (provider, reader) => reader.ReadGenericParameters(provider)) : collection = new GenericParameterCollection(self)); }
public static Collection <SecurityDeclaration> GetSecurityDeclarations( ISecurityDeclarationProvider self, ref Collection <SecurityDeclaration> variable, ModuleDefinition module) { return(Mixin.HasImage(module) ? module.Read(ref variable, self, (provider, reader) => reader.ReadSecurityDeclarations(provider)) : variable = new Collection <SecurityDeclaration>()); }
public static Collection <CustomAttribute> GetCustomAttributes( ICustomAttributeProvider self, ref Collection <CustomAttribute> variable, ModuleDefinition module) { return(Mixin.HasImage(module) ? module.Read(ref variable, self, (provider, reader) => reader.ReadCustomAttributes(provider)) : variable = new Collection <CustomAttribute>()); }
void InitializeMethods() { var module = this.Module; lock (module.SyncRoot) { if (get_method != null || set_method != null) { return; } if (!Mixin.HasImage(module)) { return; } module.Read(this, (property, reader) => reader.ReadMethods(property)); } }
void InitializeMethods() { var module = this.Module; lock (module.SyncRoot) { if (add_method != null || invoke_method != null || remove_method != null) { return; } if (!Mixin.HasImage(module)) { return; } module.Read(this, (@event, reader) => reader.ReadMethods(@event)); } }
public static bool GetHasGenericParameters( IGenericParameterProvider self, ModuleDefinition module) { return(Mixin.HasImage(module) && module.Read(self, (provider, reader) => reader.HasGenericParameters(provider))); }
public static bool GetHasSecurityDeclarations( ISecurityDeclarationProvider self, ModuleDefinition module) { return(Mixin.HasImage(module) && module.Read(self, (provider, reader) => reader.HasSecurityDeclarations(provider))); }
public static bool GetHasCustomAttributes( ICustomAttributeProvider self, ModuleDefinition module) { return(Mixin.HasImage(module) && module.Read(self, (provider, reader) => reader.HasCustomAttributes(provider))); }