Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287673: VB.NET - No quickfix for 'base class doesn't contain parameterless constructor'

$
0
0
Reporter Denis Abramov (sparky2708) Denis Abramov (sparky2708)
Created Jan 10, 2012 8:28:42 PM
Updated Jan 10, 2012 8:28:42 PM
Priority Normal
Type Unspecified
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
See screenshot.

If my base class doesn't contain a parameterless constructor give me an option to create the appropriate minimal constructor.

For example if my base class is:
Public Class MyBaseClass
  Public Sub New(ByVal i as Integer)
  End Sub
End Class


Then if my class is:
Public Class MyClass
   Inherits MyBaseClass
End Class


R# should suggest to create the constructor in my class as:
Public Class MyClass
   Inherits MyBaseClass
   
   Public Sub New(ByVal i as Integer)
      MyBase.New(i)
   End Sub
End Class

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>