Пример #1
0
        public PropertyInfoMirror[] GetProperties(BindingFlags bindingAttr)
        {
            if (properties != null)
            {
                return(properties);
            }

            PropInfo[] info = vm.conn.Type_GetProperties(id);

            PropertyInfoMirror[] res = new PropertyInfoMirror [info.Length];
            for (int i = 0; i < res.Length; ++i)
            {
                res [i] = new PropertyInfoMirror(this, info [i].id, info [i].name, vm.GetMethod(info [i].get_method), vm.GetMethod(info [i].set_method), (PropertyAttributes)info [i].attrs);
            }

            properties = res;
            return(properties);
        }
Пример #2
0
 internal CustomAttributeNamedArgumentMirror(PropertyInfoMirror prop, FieldInfoMirror field, CustomAttributeTypedArgumentMirror arg)
 {
     this.arg   = arg;
     this.prop  = prop;
     this.field = field;
 }