Exemple #1
0
        public static ActivityAttribute FromTypeDefinition(TypeDefinition type)
        {
            CustomAttribute attr = type.GetCustomAttributes("Android.App.ActivityAttribute")
                                   .SingleOrDefault();

            if (attr == null)
            {
                return(null);
            }
            ActivityAttribute self = new ActivityAttribute()
            {
                type = type,
            };

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