public static IEnumerable<GrantUriPermissionAttribute> FromTypeDefinition(TypeDefinition type)
 {
     IEnumerable<CustomAttribute> attrs = type.GetCustomAttributes ("Android.Content.GrantUriPermissionAttribute");
     if (!attrs.Any ())
         yield break;
     foreach (CustomAttribute attr in attrs) {
         var self = new GrantUriPermissionAttribute ();
         self.specified = mapping.Load (self, attr);
         yield return self;
     }
 }
Beispiel #2
0
        public static IEnumerable <GrantUriPermissionAttribute> FromTypeDefinition(TypeDefinition type)
        {
            IEnumerable <CustomAttribute> attrs = type.GetCustomAttributes("Android.Content.GrantUriPermissionAttribute");

            if (!attrs.Any())
            {
                yield break;
            }
            foreach (CustomAttribute attr in attrs)
            {
                var self = new GrantUriPermissionAttribute();
                self.specified = mapping.Load(self, attr);
                yield return(self);
            }
        }