Skip to content

Instantly share code, notes, and snippets.

@EIrwin
Created November 7, 2014 22:31
Show Gist options
  • Save EIrwin/033de6b9baba48f80393 to your computer and use it in GitHub Desktop.
Save EIrwin/033de6b9baba48f80393 to your computer and use it in GitHub Desktop.
ChangeAge ByValue Implementation
private static void ChangeAge(Person person,int newAge)
{
person = new Person(); //We CAN'T do this!
person.Age = newAge;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment