extension method question

  • Thread starter Thread starter PJ6
  • Start date Start date
P

PJ6

Is it possible for extension methods to, in VB or C#,

- extend delegates (of any signature type)?
- filter eligibility based on attribution?

Paul
 
Never mind... I found one answer I was looking for, which makes the other
question moot for now.

I didn't phrase the question right. I wanted to make an extension method for
delegate types (not instance methods, just delegate definitions), but
System.MulticastDelegate can't be used as a generic type constraint. So that
shoots a hole in my wanting to create methods on the fly with an extension
method. It's still possible, but there can be no type safety :/

Paul
 
Back
Top