Priority
Critical
Type
Bug 
State
Fixed 
Assignee
Sergey Coox 
Subsystem
Language - ASP.NET 
Affected versions
Fixed in
Fixed in build
5.0.1612.107  
Build
808
Fixed in build
811
  • Submitted by   lifeng liang
    20 months ago (25 May 2008 11:55)
  • Updated by lifeng liang
    19 months ago (10 Jun 2008 21:40)
  • Jira: RSRP-69781
    (history, comments)

RSRP-69781

Can not handle delegate with generic paramter of WebControl

I have a custom web control has delegate with generic paramter. The contorl base like:

public delegate void CallbackObjectHandler<T>(T o);

public class ControlBase<T> : WebControl
{
public event CallbackObjectHandler<T> OnObjectLoaded;
}

And the actual control like:

public class mycontrol : ControlBase<myclass>
{
}

And I use it in asp.net like:

<biz:mycontrol ID="mycontrol1" runat="server" ononobjectloaded="mycontrol1_OnObjectLoaded" />

ReSharp report the function can not find "mycontrol1_OnObjectLoaded" even it already created.

And when I use ReSharp to create the method, it created:

protected void mycontrol1_OnObjectLoaded(T o)

It should be:

protected void mycontrol1_OnObjectLoaded(myclass o)

So I think it is a bug of ReSharp for handle generic delegate for web control.

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