Microsoft
Software
Hardware
Network
Question : Instanciate a "Type"
Hi!
I want to know if it is possible to create an instance of class from a type.
Example:
public void (Type type){
//Dictionnary is a Dictionary<Type, Interface that all "type" we receive implements
Dictionnary[type] = createNewInstanceType();
}
I'm not sure I will really use that but I need to know if it is possible
Answer : Instanciate a "Type"
System.Type ThisType = System.Type.GetType("MySpe
cialType",
true);
Result = (MySpecialType)System.Acti
vator.Crea
teInstance
(ThisType)
;
Random Solutions
Windows Server Editions (32bit or 64bit)
create a shared folder on OSX server
Place to buy repair transistors.
Dual Monitor in MDI application
Exclude Servers from Folder redirection policy for users GPO
Routing to 2 networks
How do I GPO encryption for offline files?
Best way to configure my EsXi Host Server
List padding in HTML
Exchange 2010 Block Emails with Credit Card Numbers