/// <summary> /// @serialData Default fields, followed by a two byte version number /// (major byte, followed by minor byte), followed by information on /// the log record parameter array. If there is no parameter array, /// then -1 is written. If there is a parameter array (possible of zero /// length) then the array length is written as an integer, followed /// by String values for each parameter. If a parameter is null, then /// a null String is written. Otherwise the output of Object.toString() /// is written. /// </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private void writeObject(ObjectOutputStream out) throws IOException private void WriteObject(ObjectOutputStream @out) { // We have to call defaultWriteObject first. @out.DefaultWriteObject(); // Write our version number. @out.WriteByte(1); @out.WriteByte(0); if (Parameters_Renamed == null) { @out.WriteInt(-1); return; } @out.WriteInt(Parameters_Renamed.Length); // Write string values for the parameters. for (int i = 0; i < Parameters_Renamed.Length; i++) { if (Parameters_Renamed[i] == null) { @out.WriteObject(null); } else { @out.WriteObject(Parameters_Renamed[i].ToString()); } } }