Action<string> lambda - use Sub not Function?

1 posts, 0 answers
  1. James
    James avatar
    1 posts
    Member since:
    Oct 2007

    Posted 12 Jan 2013 Link to this post

    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?
Back to Top