how to edit a csharp list

Code Example - how to edit a csharp list

                
                        list[indexToEdit] = newItem;