public static IArgBinder <ImmutableArray <string> > Text(params string[] lines) { IEnumerable <IInspectionRecord> rs = null; return(ArgBinder.Create(_ => ImmutableArray.Create(lines), () => rs ??= from line in lines select InspectionRecord.Text(line))); }
static IArgBinder <string> CreateText(string line) { IEnumerable <IInspectionRecord> singleton = ImmutableArray.Create(InspectionRecord.Text(line)); return(ArgBinder.Create(_ => line, () => singleton)); }