public string ToString(DefaultObject.Mask <bool>?printMask = null) { var fg = new FileGeneration(); ToString(fg, printMask); return(fg.ToString()); }
public Mask <R> Translate <R>(Func <TItem, R> eval) { var ret = new DefaultObject.Mask <R>(); this.Translate_InternalFill(ret, eval); return(ret); }
public void ToString(FileGeneration fg, DefaultObject.Mask <bool>?printMask = null) { fg.AppendLine($"{nameof(DefaultObject.Mask<TItem>)} =>"); fg.AppendLine("["); using (new DepthWrapper(fg)) { if (printMask?.Use ?? true) { fg.AppendItem(Use, "Use"); } if (printMask?.Object ?? true) { fg.AppendItem(Object, "Object"); } } fg.AppendLine("]"); }