This is a migrated thread and some comments may be shown as answers.

Action<string> lambda - use Sub not Function?

0 Answers 41 Views
Code Converter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 12 Jan 2013, 02:08 PM
auth = new WebAuthorizer
        {
            Credentials = credentials,
            PerformRedirect = authUrl => Response.Redirect(authUrl)
        };

converts to:
auth = New WebAuthorizer() With { _
    .Credentials = credentials, _
    .PerformRedirect = Function(authUrl) Response.Redirect(authUrl) _
}

Function should be replaced with Sub?
Tags
Code Converter
Asked by
James
Top achievements
Rank 1
Share this question
or