Пример #1
0
 /// <exception cref="System.IO.IOException"></exception>
 private void writeObject(java.io.ObjectOutputStream @out)
 {
     lock (this)
     {
         java.io.ObjectOutputStream.PutField fields = @out.putFields();
         fields.put("count", Length);
         fields.put("shared", false);
         fields.put("value", getValue());
         @out.writeFields();
     }
 }
Пример #2
0
        /// <summary>
        /// readObject is called to restore the state of the StringBuffer from
        /// a stream.
        /// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private synchronized void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException
        private void WriteObject(java.io.ObjectOutputStream s)
        {
            lock (this)
            {
                java.io.ObjectOutputStream.PutField fields = s.PutFields();
                fields.Put("value", Value_Renamed);
                fields.Put("count", Count);
                fields.Put("shared", false);
                s.WriteFields();
            }
        }