SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

VB.NET - MyBase keyword and code completion in constructors

Last post 06-04-2007 8:33 PM by DanielGrunwald. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-04-2007 8:47 AM

    • VITRIOL
    • Top 100 Contributor
    • Joined on 08-22-2005
    • Italy
    • Posts 21

    VB.NET - MyBase keyword and code completion in constructors

    Hi

    I have noticed that MyBase.New() doesn't appear in overridden constructors. A simple example:

    Public Class Person
        Public Name As String
        Public Surname As String
       
        Public Sub New(ByVal name As String, ByVal surname As String)
            Me.Name = name
            Me.Surname = surname
        End Sub
    End Class

    Public Class Student
        Inherits Person
       
        Public ID As Integer
       
        Public Sub New(ByVal name As String, ByVal surname As String, ByVal id As Integer)
            MyBase.New(name, surname)  ' <- here "New" method doesn't appear in code completion
            Me.ID = id
        End Sub
    End Class


    Thank you in advance.

    Regards

    Renzo 

  • 06-04-2007 8:33 PM In reply to

    Re: VB.NET - MyBase keyword and code completion in constructors

    Implemented in 3.0.0.2536.
    Daniel Grunwald
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.