コード例 #1
0
        private CommandLineObjectPickerArgumentValue ReadLineWithAuto(PickObjectBase picker)
        {
            if (DisallowInput)
            {
                throw new InputDisallowedException("Value required");
            }

            string line = ReadLineWithAuto(picker.GetAutoCompleteIfAny());

            return(picker.Parse(line, 0));
        }
コード例 #2
0
ファイル: ConsoleInputManager.cs プロジェクト: rkm/RDMP
        private CommandLineObjectPickerArgumentValue ReadLine(PickObjectBase picker)
        {
            if (DisallowInput)
            {
                throw new InputDisallowedException("Value required");
            }

            Console.WriteLine($"Format: {picker.Format}");
            string line = ReadLine(picker.GetAutoCompleteIfAny());

            return(picker.Parse(line, 0));
        }