I decompiled a .net 4.6.1 project dll with dotpeek. After decompiling I have the following error:
CS1660 Cannot convert to 'Delegate' because type is not of delegate type
private void MainLogAdd(string s, System.Drawing.Color color)
{
this.logcol.Add(color);
this.lstLogBox.Invoke((delegate) (() =>
{
this.lstLogBox.Items.Add((object) ("[" + DateTime.Now.TimeOfDay.ToString().Substring(0, 8) + "] " + s));
this.lstLogBox.TopIndex = this.lstLogBox.Items.Count - 1;
}));
}
After change with new Action 'Action 1 does not contain a constructor that takes its arguments'