new public int Add(EntityField val) { if (_entity != null) val.SetEntity(_entity); if (!Contains(val)) return base.Add(val); return -1; }
new public void Insert(int index, EntityField val) { if (_entity != null) val.SetEntity(_entity); if (Contains(val)) Remove(val); Insert(index, val); }
new public void Insert(int index, EntityField val) { if (_entity != null) val.SetEntity(_entity); if (Contains(val)) base.Remove(val); if (index < 0) index = 0; if (index > List.Count) index = List.Count - 1; base.Insert(index, val); }