G
Guest
I have a child-class that inherits from a base class that implements an
Interface. The child class overrides a SUB from the base class that
implements a sub from the interface. (The "MapAttributesForImport" is a sub
in an interface that is implemented by the base class marked 'overridable'.)
This code was fine in VS2003/.net 1.1 and is in production.
BUT...While upgrading to the .net 2.0, VS2005 is giving me an error that
says "sub 'MapAttributesForImport' cannot be declared 'Overrides' because it
does not override a sub in a base class." This is not true and I have
verified the sub's signature matches. THE REALLY WEIRD THING IS that if I
remove the 'Overrides' keyword, the vs2005 designer then gives me an error
that says "sub 'MapAttributesForImport' shadows an overridable method in the
base class 'HRBaseExtension'. To override the base method, this method must
be declared 'Overrides' "
Thanks
Interface. The child class overrides a SUB from the base class that
implements a sub from the interface. (The "MapAttributesForImport" is a sub
in an interface that is implemented by the base class marked 'overridable'.)
This code was fine in VS2003/.net 1.1 and is in production.
BUT...While upgrading to the .net 2.0, VS2005 is giving me an error that
says "sub 'MapAttributesForImport' cannot be declared 'Overrides' because it
does not override a sub in a base class." This is not true and I have
verified the sub's signature matches. THE REALLY WEIRD THING IS that if I
remove the 'Overrides' keyword, the vs2005 designer then gives me an error
that says "sub 'MapAttributesForImport' shadows an overridable method in the
base class 'HRBaseExtension'. To override the base method, this method must
be declared 'Overrides' "
Thanks