Michael,
I can't seem to reproduce the behavior you describe. The following
code compiles correctly with all versions of the VB.NET compiler I
tried. Am I missing something?
Option Strict On
Class Foo
Public Delegate Function KeyTest(ByVal sKey As String) As Boolean
Public Sub ParametricMethod(ByVal oKeyTest As KeyTest)
End Sub
End Class
Class Bar
Public Function MyTest(ByVal oString As String) As Boolean
End Function
Sub Test()
Dim Target As New Foo
Target.ParametricMethod(AddressOf Me.MyTest)
End Sub
End Class
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.