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));
 }
Exemplo n.º 2
0
 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>());
 }
Exemplo n.º 3
0
 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>());
 }
Exemplo n.º 4
0
        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));
            }
        }
Exemplo n.º 5
0
        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)));
 }
Exemplo n.º 7
0
 public static bool GetHasSecurityDeclarations(
     ISecurityDeclarationProvider self,
     ModuleDefinition module)
 {
     return(Mixin.HasImage(module) && module.Read(self, (provider, reader) => reader.HasSecurityDeclarations(provider)));
 }
Exemplo n.º 8
0
 public static bool GetHasCustomAttributes(
     ICustomAttributeProvider self,
     ModuleDefinition module)
 {
     return(Mixin.HasImage(module) && module.Read(self, (provider, reader) => reader.HasCustomAttributes(provider)));
 }