I am in situation where I need to pass some string in a method Examine, that examines which class method (from different namespaces) is suitable to pass that string for processing. Now after processing, each method returns an object of its own type class, in which that particular method exists. My Examine method needs to return such class type of object that will accomodate all returning classes types. That is, Examine method should have a return type which will return every kind of class type object depending on methods return type in it.
Dynamic object creation and return?
Collapse
X
Comment