c# 3.0 - How to cast object to ISingleResult<T> where T is interface C# 3.0 -


I have a function in my program that gives the object I know that this object is ISingleResult & lt; T & gt; is where T is unknown but this interface implements IFoo. I want this object to be ISingleResult & lt; IFoo & gt; How do I use C # 3.0? Thanks for your help!

returning property use the property to interface it ISingleResult & lt; T & gt; is defined in one of the.


Comments