美文网首页
csharp console waituserinput

csharp console waituserinput

作者: 大地缸 | 来源:发表于2020-12-26 14:07 被阅读0次
    
        //FrequencyCalculator calculator = new FrequencyCalculator();
        protected virtual void waitUserInput () {
            //calculator.Load();
            while (true) {
                
                Console.Write (GetType ().Name.ToLower () + " > ");
                //calculator.Save();
                var line = Console.ReadLine ();
                if(false) // 2020年2月26日
                //calculator.Record(line);
                if (line.Trim () == string.Empty) continue;
                try {
    
                    normalcmdlineprocessor (line);
                } catch (Exception e) {
                    Console.WriteLine (e);
                }
            }
        }
    

    相关文章

      网友评论

          本文标题:csharp console waituserinput

          本文链接:https://www.haomeiwen.com/subject/tmhgnktx.html