static void Main(string[] args) { using (MyGameClient gc = new MyGameClient()) { Console.WriteLine("Ask a question"); string answer = gc.GetAnswer(Console.ReadLine()); Console.WriteLine(answer); } }
static void Main(string[] args) { // MEX - metadata exchange - point using (MyGameClient client = new MyGameClient()) { Console.WriteLine("Put your question"); string answer = client.GetAnswer(Console.ReadLine()); Console.WriteLine(answer); } }