Enable reading from a resource stream where Stream.Length is not implemented/supported. Original code from Jon Skeet - http://www.yoda.arachsys.com/csharp/readbinary.html