Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/boxing.cs Secret

Created Jun 22, 2019
Embed
What would you like to do?
public void CallingMethodWithObjectParam()
{
int value = 100;
SignatureWithObjectParam(value); // Implicit boxing
}
public void SignatureWithObjectParam(object o)
{
Console.WriteLine(o);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment