Hi,
>..., system shows the definition as being in the Base Clas
>instead of the derived class. Is this just a feature of VS,
>or is something else going on?
No, I don't think so. I have performed some tests on this problem, but
cannot repro this scenario. With the following sample code, If I issue the
"Go To Definition" command at the last code line, the VS2005 text editor
will be navigated to the definition of the 'Register' method in the 'Boat'
class, not the Vehicle's:
Public MustInherit Class Vehicle
...
Public Overridable Sub Register(ByVal owner As String, ByVal modelDate
As DateTime, ByVal originalCost As Decimal)
ownerValue = owner
modelYearValue = modelDate
currentValueValue = originalCost
End Sub
End Class
Public Class Boat
Inherits Vehicle
...
Public Overrides Sub Register(ByVal owner As String, ByVal modelDate As
DateTime, ByVal originalCost As Decimal)
...
End Sub
End Class
..
vessel = New Boat()
vessel.Register(ownerName.Text.Trim, New Date(CInt(modelYear.Text), 1,
1), CType(currentValue.Text.Trim, Decimal))
Maybe your project is different from mine, would you please provide a small
self-contained sample for us to research, we can use the code snippet to
repro the issue.
Thanks!
Best regards,
Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.