당신이 할 수있는 VB.NET변환 C#을 람다
에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);
}
}
}
);
}
주, VB 9 – Jeff
에 대한 멀티 라인 익명의 위임 (람다) 지원 내가 환각없는 건가요가? 나는 종종이 일을한다. 나는 그것을 찾아 보자. –