var index = list.FindIndex(c => c.Number == someTextBox.Text); list[index] = new SomeClass(...);
list[indexToEdit] = newItem;