public void DeleteField(UIRField field) { var existing = Type.Fields.Single(x => x.FieldId == field.FieldId); var index = Type.Fields.IndexOf(existing); Type.Fields.RemoveAt(index); }
public void UpdateField(UIRField field) { var existing = Type.Fields.Single(x => x.FieldId == field.FieldId); var index = Type.Fields.IndexOf(existing); Type.Fields[index] = field; field.DeclaringType = Type; }