public static BroadcastReceiverAttribute FromTypeDefinition(TypeDefinition type)
 {
     CustomAttribute attr = type.GetCustomAttributes ("Android.Content.BroadcastReceiverAttribute")
         .SingleOrDefault ();
     if (attr == null)
         return null;
     var self = new BroadcastReceiverAttribute ();
     self.specified = mapping.Load (self, attr);
     return self;
 }
Exemple #2
0
        public static BroadcastReceiverAttribute FromTypeDefinition(TypeDefinition type)
        {
            CustomAttribute attr = type.GetCustomAttributes("Android.Content.BroadcastReceiverAttribute")
                                   .SingleOrDefault();

            if (attr == null)
            {
                return(null);
            }
            var self = new BroadcastReceiverAttribute();

            self.specified = mapping.Load(self, attr);
            return(self);
        }