How do you pass a generic delegate argument to a method in .NET 2.0
- by Seth Spearman
Hello,
I have a class with a delegate declaration as follows...
Public Class MyClass
Public Delegate Function Getter(Of TResult)() As TResult
'the following code works.
Public Shared Sub MyMethod(ByVal g As Getter(Of Boolean))
'do stuff
End Sub
End Class
However, I do not want to explicitly type the Getter…