Req14: Non-empty default partial methods

[This post is part of a series, "wish-list for future versions of VB"]

 

IDEA: Allow a non-empty default partial method. (This suggestion from Bill McCarthy). For instance,

Partial Class C

    Partial Private Sub f(ByVal s As String)

        Console.WriteLine("default body - {0}", s)

    End Sub

End Class

Partial Class C

    Private Sub f(ByVal s As String)

        Console.WriteLine("user provides a body")

        Partial("and can also call the default body if desired")

    End Sub

End Class

 

Provisional evaluation from VB team: Seems an okay idea, but niche, and confusing. Does anyone have scenarios where this would be useful?