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

RSRP-221842: [VB.NET] R# producing wrong signature when selecting "Create Event ..."

$
0
0
Reporter Denis Abramov (sparky2708) Denis Abramov (sparky2708)
Created Mar 2, 2011 2:57:15 AM
Updated Jan 23, 2012 2:37:29 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Alexey Kuptsov (alexey.kuptsov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
Suppose I have:
    Private Sub OnError(ByVal sender As Object, ByVal e As FillErrorEventArgs)
        RaiseEvent ErrorOcurred(sender, e)
    End Sub


Suppose ErrorOccurred doesn't exist in my code and I am trying to get R# to generate it.
2 Points:

(1) Since I am doing a RAISEEVENT then "ErrorOccured" CAN'T BE A METHOD OR OTHER THING EXCEPT FOR AN EVENT. Do I really need to see all the other options?
(2) When I select "create event ErrorOcurred" I get:
     Private Event ErrorOcurredAs EventHandler(Of FillErrorEventArgs)


Which is wrong. Should be:
    Private Event ErrorOcurred(ByVal sender As Object, ByVal e As FillErrorEventArgs)

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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