Esempio n. 1
0
            public string ToString(SeasonalIngredientProduction.Mask <bool>?printMask = null)
            {
                var fg = new FileGeneration();

                ToString(fg, printMask);
                return(fg.ToString());
            }
Esempio n. 2
0
 public void ToString(FileGeneration fg, SeasonalIngredientProduction.Mask <bool>?printMask = null)
 {
     fg.AppendLine($"{nameof(SeasonalIngredientProduction.Mask<TItem>)} =>");
     fg.AppendLine("[");
     using (new DepthWrapper(fg))
     {
         if (printMask?.Spring ?? true)
         {
             fg.AppendItem(Spring, "Spring");
         }
         if (printMask?.Summer ?? true)
         {
             fg.AppendItem(Summer, "Summer");
         }
         if (printMask?.Fall ?? true)
         {
             fg.AppendItem(Fall, "Fall");
         }
         if (printMask?.Winter ?? true)
         {
             fg.AppendItem(Winter, "Winter");
         }
     }
     fg.AppendLine("]");
 }
Esempio n. 3
0
            public Mask <R> Translate <R>(Func <TItem, R> eval)
            {
                var ret = new SeasonalIngredientProduction.Mask <R>();

                this.Translate_InternalFill(ret, eval);
                return(ret);
            }