예제 #1
0
 private void ConvertOptionalParamsToNonNullable(Fielding fielding, FieldingStats fieldingStats)
 {
     fieldingStats.G       = fielding.G;
     fieldingStats.Gs      = fielding.Gs;
     fieldingStats.InnOuts = fielding.InnOuts;
     fieldingStats.Po      = fielding.Po;
     fieldingStats.A       = fielding.A;
     fieldingStats.E       = fielding.E;
     fieldingStats.Dp      = fielding.Dp;
     fieldingStats.Pb      = fielding.Pb;
     fieldingStats.Wp      = fielding.Wp;
     fieldingStats.Sb      = fielding.Sb;
     fieldingStats.Cs      = fielding.Cs;
     fieldingStats.Zr      = fielding.Zr;
 }
예제 #2
0
        public FieldingStats Map(Fielding fielding)
        {
            var fieldingStats = new FieldingStats()
            {
                PlayerId = fielding.PlayerId,
                YearId   = fielding.YearId,
                Stint    = fielding.Stint,
                TeamId   = fielding.TeamId,
                LgId     = fielding.LgId,
                Pos      = fielding.Pos
            };

            ConvertOptionalParamsToNonNullable(fielding, fieldingStats);

            return(fieldingStats);
        }