History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-27662
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Assignee: Andrey Simanovsky
Reporter: James Hebben
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

ASP.NET create method for generic EventHandler<> event generates incorrect event argument type

Created: 06 Aug 06 19:46   Updated: 24 Oct 06 18:12
Component/s: None
Fix Version/s: 2.0.2
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 256
Fixed in build: 262
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=27662


 Description  « Hide
In an ASP.NET project, in the aspx markup you can add a (non existent) method name to an event then use the Quick Fix to add the method hander.

If the target event is declared using the generic EventHandler<> type:

public class MyEventArgs : EventArgs {}
public event EventHandler<MyEventArgs> Foo;

Then the resulting signature for the generated event handler method contains an event type of TEventArgs instead of the actual target type (in this case MyEventArgs):

protected void OnMyFoo(object sender, TEventArgs e)
{
  throw new NotImplementedException();
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.