public static IEnumerable<IntentFilterAttribute> FromTypeDefinition(TypeDefinition type)
 {
     IEnumerable<CustomAttribute> attrs = type.GetCustomAttributes ("Android.App.IntentFilterAttribute");
     if (!attrs.Any ())
         yield break;
     foreach (CustomAttribute attr in attrs) {
         var self = new IntentFilterAttribute (ToStringArray (attr.ConstructorArguments [0].Value));
         foreach (var e in attr.Properties) {
             self.specified.Add (e.Name);
             setters [e.Name] (self, e.Argument.GetSettableValue ());
         }
         yield return self;
     }
 }
        public static IEnumerable <IntentFilterAttribute> FromTypeDefinition(TypeDefinition type)
        {
            IEnumerable <CustomAttribute> attrs = type.GetCustomAttributes("Android.App.IntentFilterAttribute");

            if (!attrs.Any())
            {
                yield break;
            }
            foreach (CustomAttribute attr in attrs)
            {
                var self = new IntentFilterAttribute(ToStringArray(attr.ConstructorArguments [0].Value));
                foreach (var e in attr.Properties)
                {
                    self.specified.Add(e.Name);
                    setters [e.Name] (self, e.Argument.GetSettableValue());
                }
                yield return(self);
            }
        }