我有一个网络服务,我已编辑,在它没有问题的情况下工作.但是现在我得到这个错误:无法序列化,因为它没有无参数构造函数我已经在下面发布了我的类.
public class Class
{
public class AnsweredQ
{
public string Question { get; set; }
public string Answer { get; set; }
public AnsweredQ(string _Question, string _Answer)
{
Question = _Question;
Answer = _Answer;
}
}
public class UnAnsweredQ
{
public string Question { get; set; }
public string[] Options { get; set; }
public UnAnsweredQ(string _Question, string[] _Options)
{
Question = _Question;
Options = _Options;
}
}
public class Trial
{
public string User { get; set; } …Run Code Online (Sandbox Code Playgroud) 我有一个线程列表我想确保它们之间的执行顺序这是代码
for (int k = 0; k < RadioList.Count; k++)
{
for (int i = 0; i < filePaths.Count(); i++)
{
Thread t = new Thread(delegate()
{
Thread_Encde_function(TempRadio.PublishPoint, filePaths[i], encodingtype);
});
t.Start();
Thread.Sleep(1000);
}
}
Run Code Online (Sandbox Code Playgroud)
我想知道thread.join()能否做到这一点.