C# checking for binary reader end of file

I was searching for a way to check whether I've reached the end of a file for my binary reader and one suggestion was to use PeekChar as such while (inFile.PeekChar() > 0) { ... } However, it