Created
February 28, 2013 08:38
-
-
Save einarwh/5055232 to your computer and use it in GitHub Desktop.
Create empty box of type T.
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
public Box<T> CreateEmptyBox<T>() | |
{ | |
return (Box<T>)Activator.CreateInstance(GetBoxType<T>()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment