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