Answers for "cannot convert from group method to threadstart C#"

C#
0

cannot convert from group method to threadstart C#

//Change your thread initialization to:
var t = new Thread(new ParameterizedThreadStart(myMethod));
t.Start(myGrid);


//And also the method to:
public void myMethod(object myGrid)
{
    var grid = (UltraGrid)myGrid;
}
Posted by: Guest on December-22-2021
0

cannot convert from group method to threadstart C#

//Pass Parameters to thread without using PARMETERIZED THREAD START 
public void myMethod(UltraGrid myGrid, string s)
{
}

Thread t = new Thread(()=>myMethod(myGrid, "abc"));
t.Start();
Posted by: Guest on December-22-2021

Code answers related to "cannot convert from group method to threadstart C#"

C# Answers by Framework

Browse Popular Code Answers by Language