Feature request

I often use delegates and events in my code and i'd prefer a refactoring
option to add a event add and remove to my class like this:

public delegate void MyEventHandler()

public class TestClass{

private MyEventHandler _onMyEvent;

// this code should be added via refactoring

public event MyEventHandler OnMyEvent
{
add
{
_onMyEvent += value;
}
remove
{
_onMyEvent -= value;
}
}

// additionally a Fire method would be nice:

private void FireOnMyEvent()
{
if (_onFireMyEvent != null)
{
_onFireMyEvent();
}
}

// Generic event handler should also be supported.
}


regards

christian


1 comment
Comment actions Permalink

Hello,

We appreciate your feedback.

The corresponding JIRA request has been created, and you are welcome to monitor
its status at http://www.jetbrains.net/jira/browse/RSRP-41879.

Best regards,
- Development Team.


0

Please sign in to leave a comment.