Example #1
0
            public string ToString(ScriptObjectListProperty.Mask <bool>?printMask = null)
            {
                var fg = new FileGeneration();

                ToString(fg, printMask);
                return(fg.ToString());
            }
Example #2
0
 public void ToString(FileGeneration fg, ScriptObjectListProperty.Mask <bool>?printMask = null)
 {
     fg.AppendLine($"{nameof(ScriptObjectListProperty.Mask<TItem>)} =>");
     fg.AppendLine("[");
     using (new DepthWrapper(fg))
     {
         if ((printMask?.Objects?.Overall ?? true) &&
             Objects.TryGet(out var ObjectsItem))
         {
             fg.AppendLine("Objects =>");
             fg.AppendLine("[");
             using (new DepthWrapper(fg))
             {
                 fg.AppendItem(ObjectsItem.Overall);
                 if (ObjectsItem.Specific != null)
                 {
                     foreach (var subItem in ObjectsItem.Specific)
                     {
                         fg.AppendLine("[");
                         using (new DepthWrapper(fg))
                         {
                             subItem?.ToString(fg);
                         }
                         fg.AppendLine("]");
                     }
                 }
             }
             fg.AppendLine("]");
         }
     }
     fg.AppendLine("]");
 }
Example #3
0
            public new Mask <R> Translate <R>(Func <TItem, R> eval)
            {
                var ret = new ScriptObjectListProperty.Mask <R>();

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