I need to get the type object for IProcessor via reflection and according to documentation I need to do the following:
Type.GetType("IProcessor`1[System.Int32]")
However, that returns null. I then tried:
Type.GetType(typeof(IProcessor<int>).FullName)
and still got a null.
I am, however, capable of getting the Type argument with:
Type.GetType(typeof(IProcessor<int>).AssemblyQualifiedName)
But unfortunately I do not have version, culture or publickey available at the call site. Any suggestions on how to get the type object?
EDIT: below mentioned typos corrected EDIT: using the typeof operator in the code is not an option. I need to get the type object runtime from a string