I am new to reflection in .net. I have a method in a dll (Public Dictionary<int,collectedhistory> CollectData()), where CollectedHistory is a class in the same dll. This class has 3 lists as properties (List of strings).
I am invoking this method from another assembly using reflection. And the result of this method has been assigned to a VAR object.
But, I am not clear, how can I type cast the output of this method in to Dictionary<int,collectedhistory)>CollectData() method exists).
Please advise me, how to type cast the method output to the proper type.