In my program I have a function which returns object. I know that this object is ISingleResult<T> where T is unknown, but it implements an interface IFoo. How do I cast this object to ISingleResult<IFoo> using C# 3.0?
Thank you for your help!
In my program I have a function which returns object. I know that this
Share
Use the
ReturnValueproperty. It is defined in one of the interfacesISingleResult<T>derives from.