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
Managing systems in a trusted domain from a single EPO server
configure samba access to SBS 2008 folders?
VBA Splitting a line with a comma seperator and quote qualifer
Need media/download link for Office 2010 Professional OEM
div tags
Sumproduct formula for total duration based on Month
Basic SharePoint 2010 Workflow
deleting the last row of data programatically before importing data
ssl certificates on rhel server rebuild
BIOS update from 02 to 09 in Dell Precision 380