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()); }
public EntityData() { mProperties = UIProperty.GetProperties(this); }