How do I create thread safe functions similiar to this one without using
WinForms?
private void UpdateText(stri ng Text)
{
if(SomeControl. InvokeRequired)
{
SomeControl.Inv oke(new MethodStringInv oker(UpdateText ),new object[]{Text});
}
else
{
SomeControl.Tex t = Text;
}
}
WinForms?
private void UpdateText(stri ng Text)
{
if(SomeControl. InvokeRequired)
{
SomeControl.Inv oke(new MethodStringInv oker(UpdateText ),new object[]{Text});
}
else
{
SomeControl.Tex t = Text;
}
}
Comment