//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private System.Nullable<int> tryToReadVersion(java.nio.channels.ReadableByteChannel channel) throws java.io.IOException private int?TryToReadVersion(ReadableByteChannel channel) { sbyte[] array = IoPrimitiveUtils.readBytes(channel, new sbyte[_magic.Length]); if (!Arrays.Equals(_magic, array)) { return(null); } return(array != null?ReadNextInt(channel) : null); }