Created
November 7, 2014 22:31
-
-
Save EIrwin/033de6b9baba48f80393 to your computer and use it in GitHub Desktop.
ChangeAge ByValue Implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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