Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You have defined a partial method implementation that has generic constraints that differ from the constraints in the partial method declaration. The following code illustrates the error.
Partial Class Class1
Partial Private Sub Test(Of T As Class)(ByVal arg As T)
End Sub
End Class
Partial Class Class1
'' The error occurs here, for Test.
'Private Sub Test(Of T As Structure)(ByVal arg As T)
'End Sub
End Class
Error ID: BC31438
See Also
Concepts
Generic Procedures in Visual Basic