Skip to content

Instantly share code, notes, and snippets.

@NineMvp
Created October 21, 2016 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NineMvp/f7838a8768f08a62d3766c7765a78237 to your computer and use it in GitHub Desktop.
Save NineMvp/f7838a8768f08a62d3766c7765a78237 to your computer and use it in GitHub Desktop.
Local Function
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