public virtual void AddProperty(PropertyItem property) { if (dicProperty == null) { dicProperty = new Dictionary<int, PropertyItem>(); } if (dicProperty.ContainsKey(property.ID)) { } dicProperty.Add(property.ID,property); property.Owner = this; }
public virtual void AddProperty(int id, object content) { PropertyItem property = new PropertyItem(id,content); AddProperty(property); }