title: What is the C# equivalent of Java's InputStreamReader and BufferedReader
body: <p>I'm trying to convert these lines into C#, but I'm struggling. Mainly with InputStreamReader and BufferedReader lines.</p>
  <pre class="lang-java prettyprint-override"><code>private static void runPrompt() throws IOException {
      InputStreamReader input = new InputStreamReader(System.in);
      BufferedReader reader = new BufferedReader(input);
  
      for (;;) { 
        System.out.print(&quot;&gt; &quot;);
        String line = reader.readLine();
        if (line == null) break;
        run(line);
      }
  }
  
  private static void run(String source) {
      Scanner scanner = new Scanner(source);
      List&lt;Token&gt; tokens = scanner.scanTokens();
  
      // For now, just print the tokens.
      for (Token token : tokens) {
        System.out.println(token);
      }
  }
  </code></pre>