Skip to content

Instantly share code, notes, and snippets.


gdyrrahitis/boxing.cs Secret

Created Jun 21, 2019
What would you like to do?
public void BoxingUnboxing()
int x = 10;
object o = x; // Box the integer
int y = (int)o; // Unbox it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment