Last active
August 29, 2015 14:08
-
-
Save EIrwin/10725e177d7ea23cc4c4 to your computer and use it in GitHub Desktop.
ChangeAge ByRef Method 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(ref Person person,int newAge) | |
{ | |
person = new Person(); //We CAN do this! | |
person.Age = newAge; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment