c# func action delegate code example
Example: action delegate c#
private void ShowContentThreadSafe(int level)
{
if (UcView.TreeList.InvokeRequired)
{
UcView.TreeList?.Invoke(new Action1<int>(a => ShowContent(level)));
}
else
ShowContent(level);
}