private void RemoveIndex(int index) { List <PARAMETEROBJECTNAME> items = InnerList; Debug.Assert((null != items) && (0 <= index) && (index < Count), "RemoveIndex, invalid"); PARAMETEROBJECTNAME item = items[index]; items.RemoveAt(index); item.ResetParent(); }
private void Replace(int index, object newValue) { List <PARAMETEROBJECTNAME> items = InnerList; Debug.Assert((null != items) && (0 <= index) && (index < Count), "Replace Index invalid"); ValidateType(newValue); Validate(index, newValue); PARAMETEROBJECTNAME item = items[index]; items[index] = (PARAMETEROBJECTNAME)newValue; item.ResetParent(); }