Exemplo n.º 1
0
        public static UIProperty[] GetProperties(object source)
        {
            List <UIProperty> props = new List <UIProperty>();

            foreach (var i in source.GetType().GetFields(BindingFlags.NonPublic | BindingFlags.Instance))
            {
                UIProperty prop = i.GetValue(source) as UIProperty;
                if (prop != null)
                {
                    props.Add(prop);
                }
            }

            return(props.ToArray());
        }
Exemplo n.º 2
0
 public EntityData()
 {
     mProperties = UIProperty.GetProperties(this);
 }