Пример #1
0
 public void ToString(FileGeneration fg, ScriptProperty.Mask <bool>?printMask = null)
 {
     fg.AppendLine($"{nameof(ScriptProperty.Mask<TItem>)} =>");
     fg.AppendLine("[");
     using (new DepthWrapper(fg))
     {
         if (printMask?.Name ?? true)
         {
             fg.AppendItem(Name, "Name");
         }
         if (printMask?.Flags ?? true)
         {
             fg.AppendItem(Flags, "Flags");
         }
     }
     fg.AppendLine("]");
 }