I probably oversimplified the code I posted. Basically, I am looking for the best method to find out an objects type and cast back to it.
I thought I could use reflection to get the typename and then use that to cast the object. This would avoided using select/case or if/endif statements.
I thought I could use reflection to get the typename and then use that to cast the object. This would avoided using select/case or if/endif statements.