overriding a method of a different DLL

I

info

Hi All,


I am trying to override a method declared "public virtual void" of a
different DLL.

Creating a derived class and declaring it as "public override void"
doesn't work. Where am I wrong?


Thanks so much,


Alberto
 
V

Vadym Stetsyak

Hello, (e-mail address removed)!

i> I am trying to override a method declared "public virtual void" of a
i> different DLL.

i> Creating a derived class and declaring it as "public override void"
i> doesn't work. Where am I wrong?

How it doesn't work? You get compile time-error?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
I

info

Hi Vadym,

No, it simply go throuth the base class method and not on derived one.
Damn....

Can you explain me why?

Thanks so much,

Alberto
 
P

Patrice

Are you sure you create an instance of the derived class and not using still
the ancestor class ?

--
Patrice

Hi Vadym,

No, it simply go throuth the base class method and not on derived one.
Damn....

Can you explain me why?

Thanks so much,

Alberto
 
I

info

oh yes patrick,

You are right !!!

I forgot to change the new declaration and add the DERIVED class
name...


Thanks so much !!!
Are you sure you create an instance of the derived class and not using still
the ancestor class ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top