Last active
July 1, 2016 02:40
-
-
Save zhenlinyang/666bc9613c9b9d74be781446b9be4ac1 to your computer and use it in GitHub Desktop.
Activator Sample
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
private ConfigDataBase CreateConfigData(Type configType) | |
{ | |
var configData = Activator.CreateInstance(configType) as ConfigDataBase; | |
return configData; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment