0

我有一个正在运行的网络服务,在这个网络服务中我添加了一个类文件(Class.cs),在这个文件中有 4 个类,当客户端(消费者)连接到网络服务时,我只能看到 4 个类中的 1 个。我有多次重新发布网络服务,我也多次更新网络参考。我不明白我出了什么问题。这是类文件的内容:

public class AnsweredQ
{
    public string Question { get; set; }
    public string Answer { get; set; }

    public AnsweredQ() { }

    public AnsweredQ(string _Question, string _Answer)
    {
        Question = _Question;
        Answer = _Answer;
    }
}
public class BadlyAnsweredQ
{
    public string Question { get; set; }
    public string[] Options { get; set; }
    public string BadAnswer { get; set; }

    public BadlyAnsweredQ() { }

    public BadlyAnsweredQ(string _Question, string[] _Options, string _BadAnswer)
    {
        Question = _Question;
        Options = _Options;
        BadAnswer = _BadAnswer;
    }
}
public class UnAnsweredQ
{
    public string Question { get; set; }
    public string[] Options { get; set; }

    public UnAnsweredQ() { }

    public UnAnsweredQ(string _Question, string[] _Options)
    {
        Question = _Question;
        Options = _Options;
    }
}
public class TrialNoobs
{
    public string User { get; set; }
    public DateTime TrialDate { get; set; }
    public bool Expired { get; set; }

    public TrialNoobs() { }

    public TrialNoobs(string _User, DateTime _TrialDate, bool _Expired)
    {
        User = _User;
        TrialDate = _TrialDate;
        Expired = _Expired;
    }
}
4

0 回答 0