Link to home
Create AccountLog in
Avatar of millerthegorilla
millerthegorilla

asked on

interface return type

Hi - I am fairly new to c# having a background in c++.

Is it possible to use an interface as a return type for a function ie:
IAsyncResult BeginGetIndustryNews(Object sender, EventArgs e, AsyncCallback cb, object state)

??
ASKER CERTIFIED SOLUTION
Avatar of Joel Coehoorn
Joel Coehoorn
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Yes, of course. And easy way to check something like that is to create test method in VS and if compiler does not complain - it's OK :)
Avatar of millerthegorilla
millerthegorilla

ASKER

thanks!