What's wrong with my calling signature?

  • Thread starter Thread starter RogerSSB
  • Start date Start date
R

RogerSSB

Guest
I have a subroutine defined as follows:

<System.Runtime.CompilerServices.Extension>
Public Sub MoveItself(Of T As Control)(ByVal ctrl As T)
<code>
End Sub

but when I call it like this:

MoveItself(MyControl)

I get this error message:

BC36582 Too many arguments to extension method 'Public Sub MoveItself()

Why?

Continue reading...
 
Back
Top