![]() |
vb.net class constructor question
Anybody know a way to instantiate a
class in vb.net given the class name as a string? For example: objectIWant = "FoobarClass" Dim fb as New magicGoesHere(objectIWant) I've been scratching through MSDN all morning without turning up anything. Thanks in advance. |
You want to create an object factory, then you can get back objects specified as an argument.
http://www.dofactory.com/Patterns/PatternAbstract.aspx Maxim Karpov runs a web log about design pattersn, his latest post deals with VB developers and patterns. http://www.ipattern.com/simpleblog/ |
All times are GMT -8. The time now is 11:35 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project