public static ServiceAttribute FromTypeDefinition(TypeDefinition type)
 {
     CustomAttribute attr = type.GetCustomAttributes ("Android.App.ServiceAttribute")
         .SingleOrDefault ();
     if (attr == null)
         return null;
     ServiceAttribute self = new ServiceAttribute ();
     self.specified = mapping.Load (self, attr);
     return self;
 }
        public static ServiceAttribute FromTypeDefinition(TypeDefinition type)
        {
            CustomAttribute attr = type.GetCustomAttributes("Android.App.ServiceAttribute")
                                   .SingleOrDefault();

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

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