Sorry.

As usual as clear as mud....

The point being that I want to specifify the type parameter on the line
invoking the delegate...

So 

FooDelegate x = new FooDelegate(FooMethod);

X<int>(123);


Not

FooDelegate<int> x = new FooDelegate<int>(FooMethod);
X(123);

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Nicholls, Mark
Sent: 30 March 2007 17:16
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] delegate to genetic method....

how?

is it possible...

class Bar
{
   int Foo<X>(X x);
}

how do I define a single delegate that can refer to Foo?

delegate int FooDelegate<X>(X x);

almost...not quite.

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to