D Dean L. Howen Jan 19, 2005 #1 could we create a object by its class name as string? Thanks for reading
B Bob Powell [MVP] Jan 19, 2005 #2 You can use the Activator class to create objects using several combinations of type names, assembly names and so-on. -- Bob Powell [MVP] Visual C#, System.Drawing Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm All new articles provide code in C# and VB.NET. Subscribe to the RSS feeds provided and never miss a new article.
You can use the Activator class to create objects using several combinations of type names, assembly names and so-on. -- Bob Powell [MVP] Visual C#, System.Drawing Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm All new articles provide code in C# and VB.NET. Subscribe to the RSS feeds provided and never miss a new article.
H Hans Kesting Jan 19, 2005 #3 Dean said: could we create a object by its class name as string? Thanks for reading Click to expand... http://www.yoda.arachsys.com/csharp/faq/#create.instance
Dean said: could we create a object by its class name as string? Thanks for reading Click to expand... http://www.yoda.arachsys.com/csharp/faq/#create.instance