private int GetVersionInfo() { if (BinaryStreamReader.ReadBinaryElement() != BinaryElement.VERSION) { throw new Exception("[RS] Failed to get version info. BinaryElement.VERSION not found."); } return(BinaryStreamReader.ReadInt32()); }