Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Last active July 31, 2018 21:05
Show Gist options
  • Save dsibinski/d21ce0c0fe4fb65cec0739fa18980944 to your computer and use it in GitHub Desktop.
Save dsibinski/d21ce0c0fe4fb65cec0739fa18980944 to your computer and use it in GitHub Desktop.
void Method1()
{
Method2(12);
Console.WriteLine("Goodbye");
}
void Method2(int testData)
{
int multiplier = 2;
Console.WriteLine("Value is " + testData);
Method3(testData* multiplier);
}
void Method3(int data)
{
Console.WriteLine("Double " + data);
}
// source: C. Farrell and N. Harrison - Under the Hood of .NET Memory Management
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment