Delegates passed as parameters not handled correctly

When passing a method name to another method that takes a delegate, I get a "Use of method 'methodname' without ()" error.

For an example, I pasted the simple delegate example found in online help at ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_csref/html/61c4895f-f785-48f8-8bfe-db73b411c4ae.htm into a simple console application and tested it. I've attached a small sample program. See line 101 of Program.cs.



Attachment(s):
DelegateProblem.zip
1 comment
Comment actions Permalink

This is a known problem (Currently we can't handle method groups in a proper
way).
Will be fixed shortly

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Wade Hatler" <no_mail@jetbrains.com> wrote in message
news:11777303.1135621715049.JavaMail.itn@is.intellij.net...

When passing a method name to another method that takes a delegate, I get
a "Use of method 'methodname' without ()" error.

>

For an example, I pasted the simple delegate example found in online help
at
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_csref/html/61c4895f-f785-48f8-8bfe-db73b411c4ae.htm
into a simple console application and tested it. I've attached a small
sample program. See line 101 of Program.cs.



0

Please sign in to leave a comment.