示例#1
0
 public void CopyFrom(ScorecardInfo scorecardInfo)
 {
     if (scorecardInfo.Scores != null)
     {
         Scores = scorecardInfo.Scores
                  .Select(s => new HoleScore(s.Par, s.Score))
                  .ToArray();
     }
     CourseId = scorecardInfo.CourseId;
     Date     = scorecardInfo.Date;
     Id       = scorecardInfo.Id;
     PlayerId = scorecardInfo.PlayerId;
 }
示例#2
0
 public ScorecardInfo(ScorecardInfo scorecardInfo)
 {
     CopyFrom(scorecardInfo);
 }