Is there a C# equivalent of Java's LineNumberReader?
<p>Is there a C# equivalent of Java's <a href="http://download.oracle.com/javase/1.4.2/docs/api/java/io/LineNumberReader.html" rel="nofollow">LineNumberReader</a>?</p>

<p>i.e. a <code>StreamReader.ReadLine()</code> which kept count of the line number.  Or is the only way to achieve this by creating a custom subclass of <a href="http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx" rel="nofollow">StreamReader</a>, and implement the necessary counting in an overridden method?</p>
