static void Main(string[] args) { bool stillWorking = true; while (stillWorking) { switch (_menuOption) { case 'T': RunTests(); PrintResults(); break; case 'R': PrintResults(); break; case 'E': stillWorking = false; break; case 'S': PrintSerOrDeserObject(GetSerName(), serObj: true); break; case 'D': PrintSerOrDeserObject(GetSerName(), serObj: false); break; case 'O': ResultPrinter.BySize = !ResultPrinter.BySize; PrintResults(); break; case 'X': //var expt = new Experiments.ThriftClientServerExpt(); //var expt = new Experiments.AvroExpt(); var expt = new Experiments.Asn1Experiments(); expt.RunExpt1(); break; default: Console.WriteLine("Unknown input!"); break; } if (stillWorking) { PrintMenu(); _menuOption = GetUserSelection(); } } }
static void Main(string[] args) { bool stillWorking = true; while (stillWorking) { switch (_menuOption) { case 'T': RunTests(); PrintResults(); break; case 'R': PrintResults(); break; case 'E': stillWorking = false; break; case 'S': PrintSerOrDeserObject(GetSerName(), serObj:true); break; case 'D': PrintSerOrDeserObject(GetSerName(), serObj: false); break; case 'O': ResultPrinter.BySize = !ResultPrinter.BySize; PrintResults(); break; case 'X': //var expt = new Experiments.ThriftClientServerExpt(); //var expt = new Experiments.AvroExpt(); var expt = new Experiments.Asn1Experiments(); expt.RunExpt1(); break; default: Console.WriteLine("Unknown input!"); break; } if (stillWorking) { PrintMenu(); _menuOption = GetUserSelection(); } } }