Created
October 21, 2016 07:30
-
-
Save NineMvp/f7838a8768f08a62d3766c7765a78237 to your computer and use it in GitHub Desktop.
Local Function
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
void Register(UserProfile userProfile) { | |
//local function | |
Tuple<string, string, int> createMember(string fName, string lName, int Age) => Tuple.Create<string, string, int>(fName, lName, Age); | |
//call local function | |
var newMember = createMember(userProfile.fname, userProfile.lname, userProfile.age); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment