public UpdateParameter(MyObject newParameter, string key)
{
// here you can write code that can *directly* access your field or list.
// you can, for instance, search for the object by key in the list, delete it from the list, and add `newParameter` to the list
// and reassign "parameter" with this new object.
}
}