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