title: How to check if I have something to read on a StreamReader?
body: <p>I need to check if my client has something in the buffer so I did not wait to write it.</p>
  
  <pre><code>private async void ThreadMethod_ListenClient()
      {
          while (true) {
              if (ClientQueue.Count == 0)
                  continue;
              Client client = (Client)ClientQueue.Dequeue ();
              if (client.Reader != null) {
                  string Say = await client.Reader.ReadLineAsync();
                  if (Say != null) {
                      if (Say.Length != 0) {
                          Console.WriteLine (Say);
                      }
                  }
              }
              ClientQueue.Enqueue (client);
  
          }
      }
  </code></pre>
  
  <p>client.Reader : StreamReader from TcpClient</p>
  
  <p>client.Socket : TcpClient</p>
  
  <p>How to check if 'client.Reader' empty?</p>
  
  <p>obs. C# with Mono</p>