public string ToString(Portal.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 Portal.Mask <R>(); this.Translate_InternalFill(ret, eval); return(ret); }
public void ToString(FileGeneration fg, Portal.Mask <bool>?printMask = null) { fg.AppendLine($"{nameof(Portal.Mask<TItem>)} =>"); fg.AppendLine("["); using (new DepthWrapper(fg)) { if (printMask?.Origin ?? true) { fg.AppendItem(Origin, "Origin"); } if (printMask?.Destination ?? true) { fg.AppendItem(Destination, "Destination"); } } fg.AppendLine("]"); }