public void Replace(string Name, object Value) { foreach (CustomProperty prop in base.List) { if (prop.Name == Name) { CustomProperty newProp = new CustomProperty(Name, Value, false, true); int index = base.List.IndexOf(prop); base.List[index] = newProp; return; } } }
public CustomPropertyDescriptor(ref CustomProperty myProperty, Attribute [] attrs) : base(myProperty.Name, attrs) { m_Property = myProperty; }
/// <summary> /// Add CustomProperty to Collectionbase List /// </summary> /// <param name="Value"></param> public void Add(CustomProperty Value) { base.List.Add(Value); }