Пример #1
0
        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)));
        }
Пример #2
0
        static IArgBinder <string> CreateText(string line)
        {
            IEnumerable <IInspectionRecord> singleton = ImmutableArray.Create(InspectionRecord.Text(line));

            return(ArgBinder.Create(_ => line, () => singleton));
        }