示例#1
0
文件: Game.cs 项目: danfma/NDB
 public Game(DateTime when, Sport sport, Team team1, Team team2)
 {
     this.when = when;
     this.sport = sport;
     this.team1 = team1;
     this.team2 = team2;
 }
示例#2
0
文件: Game.cs 项目: danfma/NDB
 public virtual void SetSport(Sport sport)
 {
     this.sport = sport;
 }
示例#3
0
文件: Player.cs 项目: danfma/NDB
 public virtual void SetFavoriteSport(Sport favoriteSport)
 {
     this.favoriteSport = favoriteSport;
 }
示例#4
0
 public virtual void SetSport(Sport sport)
 {
     this.sport = sport;
 }
示例#5
0
文件: Player.cs 项目: danfma/NDB
 public Player(string name, DateTime birthDate, Sport favoriteSport)
 {
     this.name = name;
     this.birthDate = birthDate;
     this.favoriteSport = favoriteSport;
 }