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 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 Collection<GenericParameter> GetGenericParameters (
			this IGenericParameterProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.ReadGenericParameters (provider))
				: new Collection<GenericParameter> ();
		}
Ejemplo n.º 4
0
		public static bool GetHasGenericParameters (
			this IGenericParameterProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.HasGenericParameters (provider))
				: false;
		}
Ejemplo n.º 5
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> ();
 }
		public static bool GetHasCustomAttributes (
			this ICustomAttributeProvider self,
			ModuleDefinition module)
		{
			return module.HasImage ()
				? module.Read (self, (provider, reader) => reader.HasCustomAttributes (provider))
				: false;
		}
Ejemplo n.º 7
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>();
 }
		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);
		}
        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 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;
            }
        }
Ejemplo n.º 11
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;
            }
        }
Ejemplo n.º 12
0
		public static bool GetHasSecurityDeclarations (
			this ISecurityDeclarationProvider self,
			ModuleDefinition module)
		{
			return module.HasImage () && module.Read (self, (provider, reader) => reader.HasSecurityDeclarations (provider));
		}
 public static bool GetHasGenericParameters(
     IGenericParameterProvider self,
     ModuleDefinition module)
 {
     return Mixin.HasImage(module) && module.Read(self, (provider, reader) => reader.HasGenericParameters(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;
        }
Ejemplo n.º 15
0
 public static bool GetHasCustomAttributes(
     this ICustomAttributeProvider self,
     ModuleDefinition module)
 {
     return(module.HasImage() && module.Read(self, (provider, reader) => reader.HasCustomAttributes(provider)));
 }
Ejemplo n.º 16
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>();
		}
Ejemplo n.º 17
0
 public static bool GetHasSecurityDeclarations(
     this ISecurityDeclarationProvider self,
     ModuleDefinition module)
 {
     return(module.HasImage() && module.Read(self, (provider, reader) => reader.HasSecurityDeclarations(provider)));
 }
 public static bool GetHasGenericParameters(
     this IGenericParameterProvider self,
     ModuleDefinition module)
 {
     return(module.HasImage() && module.Read(self, (provider, reader) => reader.HasGenericParameters(provider)));
 }
Ejemplo n.º 19
0
 public static bool GetHasCustomAttributes(
     ICustomAttributeProvider self,
     ModuleDefinition module)
 {
     return Mixin.HasImage(module) && module.Read(self, (provider, reader) => reader.HasCustomAttributes(provider));
 }