Will my object update the way I think it will update using this method (C#)?
<p>This might seem like a CS101 question, but I've managed to thoroughly confuse myself.</p>

<pre><code>    //this is inside a service class
    ObjectToUpdate objectToUpdate = objectrepository.Get(objectToUpdate.Id);
    SecondObject secondObject = secondObjectRepository.Get(secondObject.Id);
    objectToUpdate.Update(secondObject);
    objectRepository.Save(objectToUpdate);

    //the object itself
    public class ObjectToUpdate {
    public int Id { get; set; }
    public string Name { get; set; }

    public void Update(SecondObject secondObject) {
    Name = secondObject.Name
    }
}
</code></pre>

<p>When I get to the "Save" line, it will correctly have updated the objectToUpdate with the name from the secondObject, correct? It carries a reference to itself when you pass it to the Update method?</p>
