![]() |
|
|
#1 (permalink) |
|
Psycho
|
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. Last edited by TwoToTango; 02-12-2004 at 10:22 AM.. |
|
|
|
|
#2 (permalink) |
|
Crazy
|
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/ |
|
|
| Tags |
| class, constructor, question, vbnet |
| Thread Tools | |
|
|