title: How can I detect if a .NET StreamReader found a UTF8 BOM on the underlying stream?
body: <p>I get a <code>FileStream(filename,FileMode.Open,FileAccess.Read,FileShare.ReadWrite)</code> and then a <code>StreamReader(stream,true)</code>.</p>
  
  <p>Is there a way I can check if the stream started with a UTF8 BOM?
  I am noticing that files without the BOM are read as UTF8 by the StreamReader.</p>
  
  <p>How can I tell them apart?</p>