overriding a method of a different DLL

  • Thread starter Thread starter info
  • Start date Start date
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
 
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
 
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
 
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
 
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 ?
 
Back
Top