Last active
July 11, 2020 15:00
-
-
Save y2k/640af64406b272fe5c9074e5e74f686f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class OpenClass { } | |
class FirstOpenClass : OpenClass { } | |
class SecondOpenClass : OpenClass { } | |
class Foo <TGen> where TGen : OpenClass, new() { | |
public TGen open = new TGen(); | |
} | |
SecondOpenClass foo = new Foo<SecondOpenClass>().open; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment