public EasyProperty CreateProperty(string name, Type returnType) { EasyProperty property = new EasyProperty(this, name, returnType); this._properties.Add(property); return(property); }
public EasyProperty CreateProperty(PropertyInfo property) { EasyProperty property2 = new EasyProperty(this, property.Name, property.PropertyType); property2.IndexParameters = property.GetIndexParameters(); this._properties.Add(property2); return(property2); }
protected virtual EasyProperty[] GenerateProperties(Type inter) { PropertyInfo[] properties = inter.GetProperties(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); EasyProperty[] propertyArray = new EasyProperty[properties.Length]; for (int i = 0; i < properties.Length; i++) { propertyArray[i] = this.CreateProperty(properties[i]); } return(propertyArray); }
public void Add(EasyProperty property) { base.InnerList.Add(property); }