Resharper 2.0 still don't get anonymous delegates with generic events

Resharper 2.0 still don't get anonymous delegates with generic events. The code is below. The first annonymous delegate is parsed ok by ReSharper, but the second isn't.

 SomeGenericEvent;
	}
}
]]>

2 comments
Comment actions Permalink

Also, automatic parameters adding in both cases would be great (using TAB key as for 'normal' named delegates).

0
Comment actions Permalink

Mileta,

we are aware of this issue, and it will be fixed shortly.
Thank you for your report!

Friendly,
Dmitry

Mileta Cekovic wrote:

Resharper 2.0 still don't get anonymous delegates with generic events. The code is below. The first annonymous delegate is parsed ok by ReSharper, but the second isn't.

 using System;
> 
> namespace ConsoleApplication {
> 	class TestAnonymousDelegate {
> 		
> 		public void Test(string[] args) {
> 			TestAnonymousDelegate test = new TestAnonymousDelegate();
> 			test.SomeEvent += delegate(object sender, EventArgs e) {
> 				Console.WriteLine(e);
> 			};
> 			test.SomeGenericEvent += delegate(object sender, EventArgs e) {
> 				Console.WriteLine(e);
> 			};
> 		}
> 
> 		private event EventHandler SomeEvent;
> 		private event EventHandler SomeGenericEvent;
> 	}
> }
> ]]>



--
Dmitry Lomov
Senior Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop With Pleasure!"

0

Please sign in to leave a comment.