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
Whose Eve was mother according to this versicle Bereshit 3:20?
Remote offices and DNS
MySQL Temp table SLOW!
How do I get a json list into the proper VB.NET class
using <br> in sql statements from asp
Access VB Code to copy db
Formula to copy cell value and text
finding user in AD
Java - database connection issue, setting the jdbc class path
Cold Fusion Oracle Stored Procedures with Ref Cursor