public bool Remove(IRelationshipEnd end) { if (!RelationshipEndCollection.IsEndValid(end)) { return(false); } this.KeysInDefOrder.Remove(end.Name); return(this.EndLookup.Remove(end.Name)); }
public void Add(IRelationshipEnd end) { SchemaElement end1 = end as SchemaElement; if (!RelationshipEndCollection.IsEndValid(end) || !this.ValidateUniqueName(end1, end.Name)) { return; } this.EndLookup.Add(end.Name, end); this.KeysInDefOrder.Add(end.Name); }