[Proposal] Inherits New
Open
- Dominant language
- No language data
- Stars
- 328
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
For constructors that just call the base class constructor, in my opinion it is a little to big for what it does. Eg. Say we have the following classes.
```vbnet
Public MustInherit Class BaseClass
Public Readonly property Name() As String
Friend Sub New(Name As String)
Me.Name = Name
End Sub
End Class
Public Class Child
Inherits BaseClass
Public Sub New()
MyBase.New("Child")
End Sub
End Class
```
-----------
Using `Inherits New`
```vbnet
Public Class Child
Inherits New BaseClass("Child")
End Class
```
The compiler will auto-generate the constructor.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.