From the below code, the problem I'm having is on the second last line starting with DirectCast - I'm placing an object into CObjectManager and attempting to get it back casting it to a CTest class but the error I'm getting is:
"Expression is not a method."
I would appreciate some insight.
Public Interface IObject
Public Class CTest
Public Module CObjectManager
Private activeObject As IObject
//set and get methods for activeObject
Public Sub Main()
Dim testObject as New CTest