tags:

views:

89

answers:

1

Hello.
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!

A: 

Use the ReturnValue property. It is defined in one of the interfaces ISingleResult<T> derives from.

leppie