Yes!. Sorry, I might be too blind. :-/

Thanks,

Jaime.

El jue, 27-06-2002 a las 12:08, Dwivedi , Ajay Kumar escribi�:
> > if (modem is ISpherical)
> > {
> >     ISpherical isModem = (ISpherical) modem;
> >     modem.Roll();
> > }
> > 
> > The problem is that modem does not support the ISpherical 
> > interface but
> > when I compile the program and run it, there is no exception thrown
> > telling me it was an invalid cast.
> 
>       Are you expecing a cast Exception??? the code within the if block 
> is not run since modem is not a ISpherical.
> 
>       Try adding an else statement, and see if it gets executed.
> 
> HTH,
> Ajay
>  
> 
-- 
// http://geneura.ugr.es -- The Geneura Team
// http://www.go-mono.com -- The Mono Project

Attachment: signature.asc
Description: Esta parte del mensaje esta firmada digitalmente

Reply via email to