阅读背景:

如何将值传递给另一个类中存在的列表

来源:互联网 

These are my classes

这些是我的课程

   public class Competitor
    {
        public string Team { get; set; }
        public string Win { get; set; }
    }

    public class CompetitorsClass
    {
        public int ActiveCompetitors { get; set; }
        public List<Competitor> Competitors { get; set; }
        public int TotalCompetitors { get; set; }
        public bool HasWinOdds { get; set; }
    }

    public class RootObject
    {
        public int EventID { get; set; }
        public int ParentEventID { get; set; }
        public string MainEvent { get; set; }
        public CompetitorsClass Competitors { get; set; }
        public string EventStatus { get; set; }
        public bool IsSuspended { get; set; }
        public bool AllowBets { get; set; }
    }
   public clas



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: