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

RSRP-196710: Implement members on IGeoPositionWatcher incorrect code

$
0
0
Reporter Brendan Kowitz (Brendan.Kowitz) Brendan Kowitz (Brendan.Kowitz)
Created Nov 1, 2010 1:26:12 PM
Updated Jan 26, 2012 4:21:12 PM
Resolved Nov 9, 2010 5:24:45 PM
Priority Show-stopper
Type Bug
Fix versions 6.0 EAP, 6.0 Beta
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions 5.1.1
Fixed in build No Fixed in build
Using "Implement Members" with the following interface produces incorrect code.

Steps:
Create a new Windows Phone 7 Application
Create a new C# class file

With the following code snippet:

public class Class1 : IGeoPositionWatcher<GeoCoordinate>
{
}

Use resharper to "Implement Members"
The code will not compile, resharper has generated the following events:

public event EventHandler PositionChanged;
public event EventHandler StatusChanged;

They should be:

public event EventHandler<GeoPositionChangedEventArgs<GeoCoordinate>> PositionChanged;
public event EventHandler<GeoPositionStatusChangedEventArgs> StatusChanged;

Workaround:
The built-in visual studio "Implement Interface" does this correctly.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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