If you only want to call methods on an existing object, there is no need to pass it as 'ref'.
void DoFoo(IFoo param)
{param.Modify();}
will work just fine. And there you will have downcasting.
Cheers
Ben
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
If you only want to call methods on an existing object, there is no need to pass it as 'ref'.
void DoFoo(IFoo param)
{param.Modify();}
will work just fine. And there you will have downcasting.
Cheers
Ben