Durante la compilazione il mio programma (compilo da MonoDevelop IDE) ricevo un errore:La chiamata è ambigua tra le seguenti metodi o proprietà С #
Error CS0121: The call is ambiguous between the following methods or properties:
System.Threading.Thread.Thread(System.Threading.ThreadStart)' and
System.Threading.Thread.Thread(System.Threading.ParameterizedThreadStart)' (CS0121)
Qui la parte di codice.
Thread thread = new Thread(delegate {
try
{
Helper.CopyFolder(from, to);
Helper.RunProgram("chown", "-R www-data:www-data " + to);
}
catch (Exception exception)
{
Helper.DeactivateThread(Thread.CurrentThread.Name);
}
Helper.DeactivateThread(Thread.CurrentThread.Name);
});
thread.IsBackground = true;
thread.Priority = ThreadPriority.Lowest;
thread.Name = name;
thread.Start();
Grazie per l'attenzione