Generate method for delegate?

Does resharper have a feature to generate the method? I know there is for events but what about in other areas?

Func(MethodThatNeedsToBeImplemented);
void Func(Action<int, string, int> func);

3 comments
Comment actions Permalink

Hello
     ReSharper 6.1 has a quick-fix to create a method in this case. Let me know if this helps. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Thanks, didn't realize there was a quick-fix for this. Although it seems it wont show if there is another function with the same name and same number of parameters.

func);
 
static void test(Action act)
{
 
}
static void test(int num)
{
 
}
0
Comment actions Permalink

Hello
     This looks like a bug to me. I've logged it under http://youtrack.jetbrains.net/issue/RSRP-287539 and you're welcome to monitor its status. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.