Reporter |
![]() |
---|---|
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.
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.