private void DoListUpdate() { String[] commaSplit = this.listUpdateTextBox.Text.Split(','); ListEntry entry = (ListEntry)editUriTable[this.listEntryComboBox.Text]; for (int i = 0; i < commaSplit.Length; i++) { String[] pair = commaSplit[i].Split('='); // Make the new replacement custom ListEntry.Custom custom = new ListEntry.Custom(); custom.LocalName = pair[0]; if (pair.Length == 2) { custom.Value = pair[1]; } else { custom.Value = null; entry.Elements.Remove(custom); continue; } // Set the replacement custom int index = entry.Elements.IndexOf(custom); entry.Elements[index] = custom; } AtomEntry retEntry = service.Update(entry); }