Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Nested function does not have a signature that is compatible with delegate '<delegatename>'

A lambda expression has been assigned to a delegate that has an incompatible signature. For example, in the following code, delegate Del has two integer parameters.

Delegate Function Del(ByVal p As Integer, ByVal q As Integer) As Integer

The error is raised if a lambda expression with one argument is declared as type Del:

' Neither of these is valid. 
' Dim lambda1 As Del = Function(n As Integer) n + 1
' Dim lambda2 As Del = Function(n) n + 1

Error ID: BC36532

To correct this error

  • Adjust either the delegate definition or the assigned lambda expression so that the signatures are compatible.

Show:
© 2015 Microsoft