Convert C# Lambda to vb.net

Posted by Joven on Stack Overflow See other posts from Stack Overflow or by Joven
Published on 2011-01-02T08:14:07Z Indexed on 2011/01/02 8:54 UTC
Read the original article Hit count: 238

Filed under:
|
|
|

Need Help in converting this to VB.NET

   public void GetCustomers(Action<IEnumerable<Customer>> onSuccess, Action<Exception> onFail)
    {
        Manager.Customers.ExecuteAsync(op =>
              {
                  if (op.CompletedSuccessfully)
                  {
                      if (onSuccess != null) 
                          onSuccess(op.Results);
                  }
                  else
                  {
                      if (onFail != null)
                      {
                          op.MarkErrorAsHandled();
                          onFail(op.Error);
                      }
                  }
              }
           );
    }

© Stack Overflow or respective owner

Related posts about c#

Related posts about vb.net