public static bool GetHasCustomAttributes(
     this ICustomAttributeProvider self,
     /*Telerik Authorship*/ ref bool?variable,
     ModuleDefinition module)
 {
     return(module.HasImage() && module.Read(ref variable, self, (provider, reader) => reader.HasCustomAttributes(provider)) == true);
 }
 public static bool GetHasSecurityDeclarations(
     this ISecurityDeclarationProvider self,
     /*Telerik Authorship*/ ref bool?variable,
     ModuleDefinition module)
 {
     return(module.HasImage() && module.Read(ref variable, self, (provider, reader) => reader.HasSecurityDeclarations(provider)) == true);
 }
예제 #3
0
        public static void ResolveConstant(
            this IConstantProvider self,
            /*Telerik Authorship*/ ref ConstantValue constant,
            ModuleDefinition module)
        {
            if (module == null)
            {
                constant = Mixin.NoValue;
                return;
            }

            lock (module.SyncRoot) {
                if (constant != Mixin.NotResolved)
                {
                    return;
                }
                if (module.HasImage())
                {
                    constant = module.Read(self, (provider, reader) => reader.ReadConstant(provider));
                }
                else
                {
                    constant = Mixin.NoValue;
                }
            }
        }
		public static bool GetHasGenericParameters (
			this IGenericParameterProvider self,
			/*Telerik Authorship*/ ref bool? variable,
			ModuleDefinition module)
		{
			return module.HasImage () && module.Read (ref variable, self, (provider, reader) => reader.HasGenericParameters (provider)) == true;
		}
예제 #5
0
 public static bool GetHasGenericParameters(
     this IGenericParameterProvider self,
     /*Telerik Authorship*/ ref bool?variable,
     ModuleDefinition module)
 {
     return(module.HasImage() && module.Read(ref variable, self, (provider, reader) => reader.HasGenericParameters(provider)) == true);
 }
        public static bool GetHasCustomAttributes(
			this ICustomAttributeProvider self,
            /*Telerik Authorship*/ ref bool? variable,
			ModuleDefinition module)
        {
            return module.HasImage () && module.Read (ref variable, self, (provider, reader) => reader.HasCustomAttributes (provider)) == true;
        }
예제 #7
0
 public static Collection <GenericParameter> GetGenericParameters(
     this IGenericParameterProvider self,
     ModuleDefinition module)
 {
     return(module.HasImage()
        ? module.Read(self, (provider, reader) => reader.ReadGenericParameters(provider))
        : new Collection <GenericParameter> ());
 }
		public static Collection<GenericParameter> GetGenericParameters (
			this IGenericParameterProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.ReadGenericParameters (provider))
				: new Collection<GenericParameter> ();
		}
예제 #9
0
 public static bool GetHasCustomAttributes(this ICustomAttributeProvider self, ModuleDefinition module)
 {
     if (!module.HasImage())
     {
         return(false);
     }
     return(module.Read <ICustomAttributeProvider, bool>(self, (provider, reader) => reader.HasCustomAttributes(provider)));
 }
예제 #10
0
 public static bool GetHasGenericParameters(this IGenericParameterProvider self, ModuleDefinition module)
 {
     if (!module.HasImage())
     {
         return(false);
     }
     return(module.Read <IGenericParameterProvider, bool>(self, (provider, reader) => reader.HasGenericParameters(provider)));
 }
예제 #11
0
 public static bool GetHasMarshalInfo(this IMarshalInfoProvider self, ModuleDefinition module)
 {
     if (!module.HasImage())
     {
         return(false);
     }
     return(module.Read <IMarshalInfoProvider, bool>(self, (provider, reader) => reader.HasMarshalInfo(provider)));
 }
예제 #12
0
 public static Collection <SecurityDeclaration> GetSecurityDeclarations(
     this ISecurityDeclarationProvider self,
     ModuleDefinition module)
 {
     return(module.HasImage()
                         ? module.Read(self, (provider, reader) => reader.ReadSecurityDeclarations(provider))
                         : new Collection <SecurityDeclaration> ());
 }
예제 #13
0
 public static bool GetHasSecurityDeclarations(this ISecurityDeclarationProvider self, ModuleDefinition module)
 {
     if (!module.HasImage())
     {
         return(false);
     }
     return(module.Read <ISecurityDeclarationProvider, bool>(self, (provider, reader) => reader.HasSecurityDeclarations(provider)));
 }
예제 #14
0
 public static MarshalInfo GetMarshalInfo(this IMarshalInfoProvider self, ref MarshalInfo variable, ModuleDefinition module)
 {
     if (!module.HasImage())
     {
         return(null);
     }
     return(module.Read <IMarshalInfoProvider, MarshalInfo>(ref variable, self, (provider, reader) => reader.ReadMarshalInfo(provider)));
 }
예제 #15
0
 public static Collection<CustomAttribute> GetCustomAttributes(
     this ICustomAttributeProvider self,
     ModuleDefinition module)
 {
     return module.HasImage ()
         ? module.Read (self, (provider, reader) => reader.ReadCustomAttributes (provider))
         : new Collection<CustomAttribute> ();
 }
예제 #16
0
		public static bool GetHasGenericParameters (
			this IGenericParameterProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.HasGenericParameters (provider))
				: false;
		}
 public static Collection <CustomAttribute> GetCustomAttributes(
     this ICustomAttributeProvider self,
     ModuleDefinition module)
 {
     return(module.HasImage()
        ? module.Read(self, (provider, reader) => reader.ReadCustomAttributes(provider))
        : new Collection <CustomAttribute> ());
 }
		public static bool GetHasCustomAttributes (
			this ICustomAttributeProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.HasCustomAttributes (provider))
				: false;
		}
		public static Collection<GenericParameter> GetGenericParameters (
			this IGenericParameterProvider self,
			ref Collection<GenericParameter> collection,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (ref collection, self, (provider, reader) => reader.ReadGenericParameters (provider))
				: collection = new GenericParameterCollection (self);
		}
예제 #20
0
 public static Collection <GenericParameter> GetGenericParameters(
     this IGenericParameterProvider self,
     ref Collection <GenericParameter> collection,
     ModuleDefinition module)
 {
     return(module.HasImage()
         ? module.Read(ref collection, self, (provider, reader) => reader.ReadGenericParameters(provider))
         : collection = new GenericParameterCollection(self));
 }
예제 #21
0
 public static Collection <GenericParameter> GetGenericParameters(this IGenericParameterProvider self, ref Collection <GenericParameter> collection, ModuleDefinition module)
 {
     if (!module.HasImage())
     {
         Collection <GenericParameter> collection2;
         collection = collection2 = new GenericParameterCollection(self);
         return(collection2);
     }
     return(module.Read <IGenericParameterProvider, Collection <GenericParameter> >(ref collection, self, (provider, reader) => reader.ReadGenericParameters(provider)));
 }
예제 #22
0
 public static Collection <CustomAttribute> GetCustomAttributes(this ICustomAttributeProvider self, ref Collection <CustomAttribute> variable, ModuleDefinition module)
 {
     if (!module.HasImage())
     {
         Collection <CustomAttribute> collection;
         variable = collection = new Collection <CustomAttribute>();
         return(collection);
     }
     return(module.Read <ICustomAttributeProvider, Collection <CustomAttribute> >(ref variable, self, (provider, reader) => reader.ReadCustomAttributes(provider)));
 }
예제 #23
0
 public static Collection <SecurityDeclaration> GetSecurityDeclarations(this ISecurityDeclarationProvider self, ref Collection <SecurityDeclaration> variable, ModuleDefinition module)
 {
     if (!module.HasImage())
     {
         Collection <SecurityDeclaration> collection;
         variable = collection = new Collection <SecurityDeclaration>();
         return(collection);
     }
     return(module.Read <ISecurityDeclarationProvider, Collection <SecurityDeclaration> >(ref variable, self, (provider, reader) => reader.ReadSecurityDeclarations(provider)));
 }
 public static Collection <SecurityDeclaration> GetSecurityDeclarations(
     this ISecurityDeclarationProvider self,
     /*Telerik Authorship*/ ref Collection <SecurityDeclaration> variable,
     ModuleDefinition module)
 {
     /*Telerik Authorship*/
     return(module.HasImage()
                         ? module.Read(ref variable, self, (provider, reader) => reader.ReadSecurityDeclarations(provider))
                         : variable = new Collection <SecurityDeclaration>());
 }
 public static Collection <CustomAttribute> GetCustomAttributes(
     this ICustomAttributeProvider self,
     /*Telerik Authorship*/ ref Collection <CustomAttribute> variable,
     ModuleDefinition module)
 {
     /*Telerik Authorship*/
     return(module.HasImage()
                         ? module.Read(ref variable, self, (provider, reader) => reader.ReadCustomAttributes(provider))
                         : variable = new Collection <CustomAttribute>());
 }
        public static Collection<CustomAttribute> GetCustomAttributes(
			this ICustomAttributeProvider self,
			/*Telerik Authorship*/ ref Collection<CustomAttribute> variable,
			ModuleDefinition module)
        {
            /*Telerik Authorship*/
            return module.HasImage ()
                ? module.Read (ref variable, self, (provider, reader) => reader.ReadCustomAttributes (provider))
                : variable = new Collection<CustomAttribute>();
        }
예제 #27
0
        public static Collection <CustomAttribute> GetCustomAttributes(
            this ICustomAttributeProvider self,
            ref Collection <CustomAttribute> variable,
            ModuleDefinition module)
        {
            if (module.HasImage())
            {
                return(module.Read(ref variable, self, (provider, reader) => reader.ReadCustomAttributes(provider)));
            }

            Interlocked.CompareExchange(ref variable, new Collection <CustomAttribute> (), null);
            return(variable);
        }
        public static Collection <GenericParameter> GetGenericParameters(
            this IGenericParameterProvider self,
            ref Collection <GenericParameter> collection,
            ModuleDefinition module)
        {
            if (module.HasImage())
            {
                return(module.Read(ref collection, self, (provider, reader) => reader.ReadGenericParameters(provider)));
            }

            Interlocked.CompareExchange(ref collection, new GenericParameterCollection(self), null);
            return(collection);
        }
        public static void ResolveConstant(
			this IConstantProvider self,
			/*Telerik Authorship*/ ref ConstantValue constant,
			ModuleDefinition module)
        {
            /*Telerik Authorship*/
            lock (module.SyncRoot) {
                if (constant != Mixin.NotResolved)
                    return;
                if (module.HasImage ())
                    constant = module.Read (self, (provider, reader) => reader.ReadConstant (provider));
                else
                    constant = Mixin.NoValue;
            }
        }
예제 #30
0
        private void InitializeMethods()
        {
            ModuleDefinition module = this.Module;

            if (module != null)
            {
                lock (module.SyncRoot)
                {
                    if (((this.get_method == null) && (this.set_method == null)) && module.HasImage())
                    {
                        module.Read <PropertyDefinition, PropertyDefinition>(this, (property, reader) => reader.ReadMethods(property));
                    }
                }
            }
        }
예제 #31
0
        public static void ResolveConstant(
			this IConstantProvider self,
			out object constant,
			out ElementType element_type,
			ModuleDefinition module)
        {
            if (module.HasImage ()) {
                ElementType etype = 0;
                constant = module.Read (self, (provider, reader) => reader.ReadConstant (provider, out etype));
                element_type = etype;
            }
            else {
                constant = Mixin.NoValue;
                element_type = ElementType.NotInitialized;
            }
        }
예제 #32
0
        private void InitializeMethods()
        {
            ModuleDefinition module = Module;

            if (module != null)
            {
                lock (module.SyncRoot)
                {
                    if (get_method == null && set_method == null && module.HasImage())
                    {
                        module.Read(this, delegate(PropertyDefinition property, MetadataReader reader)
                        {
                            reader.ReadMethods(property);
                        });
                    }
                }
            }
        }
예제 #33
0
        private void InitializeMethods()
        {
            ModuleDefinition module = this.Module;

            if (module == null)
            {
                return;
            }
            lock (module.SyncRoot)
            {
                if (this.get_method == null && this.set_method == null)
                {
                    if (module.HasImage())
                    {
                        module.Read <PropertyDefinition, PropertyDefinition>(this, (PropertyDefinition property, MetadataReader reader) => reader.ReadMethods(property));
                    }
                }
            }
        }
        private void InitializeMethods()
        {
            ModuleDefinition module = this.Module;

            if (module == null)
            {
                return;
            }
            lock (module.SyncRoot)
            {
                if (this.add_method == null && this.invoke_method == null && this.remove_method == null)
                {
                    if (module.HasImage())
                    {
                        module.Read <EventDefinition, EventDefinition>(this, (EventDefinition @event, MetadataReader reader) => reader.ReadMethods(@event));
                    }
                }
            }
        }
예제 #35
0
 public static void ResolveConstant(this IConstantProvider self, ref object constant, ModuleDefinition module)
 {
     if (module == null)
     {
         constant = NoValue;
     }
     else
     {
         lock (module.SyncRoot)
         {
             if (constant == NotResolved)
             {
                 if (!module.HasImage())
                 {
                     constant = NoValue;
                 }
                 else
                 {
                     constant = module.Read <IConstantProvider, object>(self, (provider, reader) => reader.ReadConstant(provider));
                 }
             }
         }
     }
 }
예제 #36
0
        private void InitializeMethods()
        {
            ModuleDefinition module = Module;

            if (module != null)
            {
                lock (module.SyncRoot)
                {
                    if (add_method == null && invoke_method == null && remove_method == null && module.HasImage())
                    {
                        module.Read(this, delegate(EventDefinition @event, MetadataReader reader)
                        {
                            reader.ReadMethods(@event);
                        });
                    }
                }
            }
        }
예제 #37
0
		public static Collection<SecurityDeclaration> GetSecurityDeclarations (
			this ISecurityDeclarationProvider self,
			ref Collection<SecurityDeclaration> variable,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (ref variable, self, (provider, reader) => reader.ReadSecurityDeclarations (provider))
				: variable = new Collection<SecurityDeclaration>();
		}
예제 #38
0
		public static bool GetHasSecurityDeclarations (
			this ISecurityDeclarationProvider self,
			ModuleDefinition module)
		{
			return module.HasImage () && module.Read (self, (provider, reader) => reader.HasSecurityDeclarations (provider));
		}
예제 #39
0
 public static bool GetHasCustomAttributes(
     this ICustomAttributeProvider self,
     ModuleDefinition module)
 {
     return(module.HasImage() && module.Read(self, (provider, reader) => reader.HasCustomAttributes(provider)));
 }
        public static bool GetHasSecurityDeclarations(
			this ISecurityDeclarationProvider self,
			/*Telerik Authorship*/ ref bool? variable,
			ModuleDefinition module)
        {
            return module.HasImage () && module.Read (ref variable, self, (provider, reader) => reader.HasSecurityDeclarations (provider)) == true;
        }
예제 #41
0
 public static bool GetHasGenericParameters(
     this IGenericParameterProvider self,
     ModuleDefinition module)
 {
     return(module.HasImage() && module.Read(self, (provider, reader) => reader.HasGenericParameters(provider)));
 }
예제 #42
0
        private void InitializeMethods()
        {
            ModuleDefinition module = this.Module;

            if (module != null)
            {
                lock (module.SyncRoot)
                {
                    if (((this.add_method == null) && ((this.invoke_method == null) && (this.remove_method == null))) && module.HasImage())
                    {
                        module.Read <EventDefinition, EventDefinition>(this, (@event, reader) => reader.ReadMethods(@event));
                    }
                }
            }
        }