M
MP
Hi,
I am using VS 2005 and I am trying to write a Generic class to fire
asynchronously the remoting events from a server.
I declare the generic like so...
public class AsyncEvent<Del> where Del : Delegate
and I get this error... 'Constraint cannot be special class
'System.Delegate"...
I understand what the message says, but does this mean that I absolutly
cannot write a generic for delegates... Is there another type I can use?
-Martin
I am using VS 2005 and I am trying to write a Generic class to fire
asynchronously the remoting events from a server.
I declare the generic like so...
public class AsyncEvent<Del> where Del : Delegate
and I get this error... 'Constraint cannot be special class
'System.Delegate"...
I understand what the message says, but does this mean that I absolutly
cannot write a generic for delegates... Is there another type I can use?
-Martin