Created
June 28, 2011 15:55
-
-
Save benben/1051461 to your computer and use it in GitHub Desktop.
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
if (option == "Object1") | |
{ | |
Object1 obj = new Object1(); | |
} | |
else if (option == "Object2") | |
{ | |
Object2 obj = new Object2(); | |
} | |
else if (option == "AnotherObject") | |
{ | |
AnotherObject obj = new AnotherObject(); | |
} | |
else if ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment