Shadows in C#

  • Thread starter Thread starter nic
  • Start date Start date
N

nic

Hi,

In VB.Net schadows exists to hide a base method with his
different signatures.

What is the equivalent in C#?

new hide only the method with the same signature.

Thanks
Nic
 
Hi nic,
In VB.Net schadows exists to hide a base method with his
different signatures.

What is the equivalent in C#?

AFAIK C# uses *hidebysig* attribute for overloads and this cannot be
changed. AFAIK with VB.NET the programmer can control whether to use
*hidebysig* or *hidebyname*
new hide only the method with the same signature.

Actually *new* doesn't hide anything. It just suppresses the compiler's
warning.

B\rgds
100
 
Back
Top