Lambda question
public text v1 · immutable// Let's say there's a function that takes an Action<int>
public FunctionThatTakesDelegate(Action<int> callback)
{
}
// And you have a function that matches Action<int>
public void DoSomethingWithInt(int intToUse)
{
}
// I've seen people do something like this before:
FunctionThatTakesDelegate( value => DoSomethingWithInt(value) );
// Is this identical to:
FunctionThatTakesDelegate( DoSomethingWithInt );
// If so, why would they use the lambda expression?