Notes from a .net meeting on lambdas
-- async
Service.MethodCOmpleted =+ eventHandler
Service.MethodAsync ();
Stubs out eventHandler (object sender, args e) {
do something
}
delegate
Proxy.MethodCompleted += delegate (object sender, event e) {
do something
ListBoxItem.ItemSource = e.result;
}
Proxy.methodAsync
lamda
Proxy.MethodCompleted += (sender, e) => {
do something
ListBoxItem.ItemSource = e.result;
}
Proxy.methodAsync
As person (if this is not a person, it will retur null;
a null is also ok.