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开发者_如何学C ISingleResult<IFoo> using C# 3.0?
Use the ReturnValue property. It is defined in one of the interfaces ISingleResult<T> derives from.
加载中,请稍侯......
精彩评论