How can I create a function that will have a dynamic return type based on the parameter type?
Like
protected DynamicType Test(DynamicType type) { retur
Actually, assuming that you have a known set of parameters and return types, it could be handled with simple overloading:
protected int Test(string p) { ... } protected string Test(DateTime p ) { .... }