Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Andrey Simanovsky 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
Next build 
Build
256
Fixed in build
262
  • Submitted by   James Hebben
    3 years ago (06 Aug 2006 19:46)
  • Updated by James Hebben
    3 years ago (24 Oct 2006 18:12)
  • Jira: RSRP-27662
    (history, comments)

RSRP-27662

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

0
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();
}


Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments