Simplified Console Input Class for C#, Similar to “cin >> a >> b” in C++ and java.util.Scanner

November 23, 2011
Recently I was again asked how do we perform “cin >> a >> b” in C# or how we can enter a sequence of numbers from the console in C#. In C++ we have very powerful class called “cin” (more correctly std::cin located in the standard library “iosteam”) that overloads the >> operator and allows