private void TestA(string a, EventHandler<EventArgs> callBack)
{
if (a == "q")
{
callBack(false, new EventArgs());
}
else
{
callBack(true, new EventArgs());
}
}
private void TestB()
{
TestA("q", (aa, bb) =>
{
bool result = (bool)aa;
MessageBox.Show(result.ToString());
});
}