static string ReadString( [NotNull] BinaryReader reader ) { if( reader.ReadBoolean() ) { return reader.ReadString(); } else { return null; } }