I created a class deriving from StreamReader and I added the following method to it:

public string PeekLine()
while (true)
long peekPos = this.BaseStream.Position;
string line = this.ReadLine();
this.BaseStream.Position = peekPos;
return line;

However it does not work.
this.BaseStream.Position equals to 1024 before and after 'this.ReadLine()'. Where did I make a mistake?

Thank you for help in advance