S
Satish
When i compile this function I get the error Cannot convert lambda
expression of type System.delegate because it is not a delegate type.
private void SetStatus(string status)
{
if (this.InvokeRequired)
{
this.Invoke( status => SetStatus(status));
}
else
{
toolStripStatusLabel1.Text = status;
}
}
Is it not possible to use the lambda expression in this case? Do I have
to declare a delegate and use it like the old way?
expression of type System.delegate because it is not a delegate type.
private void SetStatus(string status)
{
if (this.InvokeRequired)
{
this.Invoke( status => SetStatus(status));
}
else
{
toolStripStatusLabel1.Text = status;
}
}
Is it not possible to use the lambda expression in this case? Do I have
to declare a delegate and use it like the old way?