Is it possible to create anonymous delegates in vb.net version 8 or earlier? If so, could someone provide an example of the syntax? Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In VB 9.0 you can create single line lambda expressions
In VB 10.0 (not yet released). You will be able to create both multiline function and sub routines (as well as single line subs). For example
EDIT OP clarified it was for pre- VB 9.0
No, there is no way prior to VB 9.0 to create lambda expressions / anonymous delegates in VB.