C# pass function as parameter

Date: 2019-10-24
var customer = "A";

Func<int, bool> updateProgress = (int progress) =>
{
	Dispatcher.Invoke(() => UpdateProgress(customer, progress));
	return true;
};

var files = await service.DoSomeAction(updateProgress);
// public Task DoSomeAction(Func<int, bool> updateProgress)
27000cookie-checkC# pass function as parameter