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
Combo box on pop up question
How do I work out transfer time?
Outlook 2003 - How Do I Set MS Exchange Server...
Windows 7 Password Protection Issue
Do I really need 3 form.php files plus 3 send_form.php files?
How to test if a control has data
How purge records from access database
Transfert in Microsoft access db
Why is my VB script limiting results to 1500 ?
SQL query help (MySQL)