I searched for some time and still could not find the answer to my question, instead I find the answers to "Creating a universal method with several parameters of a general type".
So this is my problem. I have an interface IMyInterface<T1, T2>and I want to create it as a Type. Currently, I can create a type for IMyInterface<T>as follows:
Type type = typeof(IMyInterface<>).MakeGenericType(genericTypeForMyInterface)
Any help would be greatly appreciated.
Thank:)
source
share