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
Are GIF animated files still a good option for web sites?
user definied DB role
RMS report, filter Last Month
Cisco 1811 Wireless Connection Issues
Exchange 2010 ActiveSync Issues
Group Policy Inheritance
System infected with Security.Hijack can't use Security Center in Window 7 64-bit
Wireless print server with Windows Server 2003
Reading XML file of Sports scores
WPF: When might I want a class in the toolbar?