Yes sorry.

However, 't' is a BloggerPlugin that is inherited from an Interface
(IPlugin), how can I cast it and use it as an Object, like this:

> > >   IPluging p = (IPlugin)t;
> > >   object retVal = p.MGetPosts(3, user);

Can I cast an object that is inherited so the casted object will be the
'father' object?. Like this:

class Foo {
        Foo() {}
        public void Read() {
                //Something
        }
}

class Bar : Foo {
        Bar() {}
}

Bar b = (Bar)f;

I tried and it fails:

Unhandled Exception: System.InvalidCastException: Cannot cast from
source type to destination type.
in <0x00080> PluginLoader:Main (string[])

Thanks!
Pablo

-- 
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Fingerprint:  5973 0F10 543F 54AE 1E41  EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx 
http://www.debianmexico.org

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente

Reply via email to