I have used lambda syntax before but I keep seeing the following kind of syntax and I am not sure how to interpret this. Are there are more conventional ways of writing these so I can compare the two and understand better?
This is one of the examples I have seen:
client.ExecuteAsync(request, (response, asyncHandle) =>
{
Assert.NotNull(response.Content);
Assert.Equal(val, response.Content);
resetEvent.Set();
});
This is another example:
client.SearchAsync("Getting", s => {
Assert.IsNotNull(s);
Assert.AreEqual(1, s.Count);
},
Assert.IsNull);
Is there a way of writing these without lambda so I can understand them?