vb.net return a class from a function, but don't know what kind of class gets returned
Posted on 2006-07-12
I have a vb6 app that calls a function which returns a class
Dim stepToBeProgrammed As Object
Set stepToBeProgrammed = getClassOrFormFromStep(stepNameLong, "class")
The function getClassOrFormFromStep, is set up to return an object, in this case a class.
Is this how I should do it in vb.net?
Does setting the object cast it's type?
Is there a performance issue here?