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

                ToString(fg, printMask);
                return(fg.ToString());
            }
Esempio n. 2
0
            public Mask <R> Translate <R>(Func <TItem, R> eval)
            {
                var ret = new MusicTrackLoopData.Mask <R>();

                this.Translate_InternalFill(ret, eval);
                return(ret);
            }
Esempio n. 3
0
 public void ToString(FileGeneration fg, MusicTrackLoopData.Mask <bool>?printMask = null)
 {
     fg.AppendLine($"{nameof(MusicTrackLoopData.Mask<TItem>)} =>");
     fg.AppendLine("[");
     using (new DepthWrapper(fg))
     {
         if (printMask?.Begins ?? true)
         {
             fg.AppendItem(Begins, "Begins");
         }
         if (printMask?.Ends ?? true)
         {
             fg.AppendItem(Ends, "Ends");
         }
         if (printMask?.Count ?? true)
         {
             fg.AppendItem(Count, "Count");
         }
     }
     fg.AppendLine("]");
 }