how to declare Lamda function at PUBLIC with in a class
error code
Below code is working fine
error code
PHP Code:
Public Class ExClass
Dim _duplicatedocumentJSC As Func(Of Boolean)
Public Function Getvalue () as boolean
_duplicatedocumentJSC = Function(_newName$) As Boolean
' Getting Error here :
Nested function does not have a signature that is compatible with delegate '<delegatename>'
End Function
End Function
End Class
Below code is working fine
PHP Code:
Public Class ExClass
Dim _duplicatedocumentJSC As Func(Of Boolean)
Public Function Getvalue () as boolean
_duplicatedocumentJSC = Function() As Boolean
End Function
End Function
End Class