private void writeObject(java.io.ObjectOutputStream oos) { if (m_modelData != null) { oos.writeInt(3); oos.writeInt(m_modelData.Length); oos.write(m_modelData, 0, m_modelData.Length); oos.writeBoolean(m_mustValue.HasValue); oos.writeInt(m_mustValue.HasValue ? m_mustValue.Value : 0); oos.writeDouble(m_delta.Value); } }
public void writeExternal (java.io.ObjectOutput output) { lock (this) { output.writeBoolean (_needSessionPersistence); if (!_needSessionPersistence) //indicates that there is nothing to serialize for this object return; ObjectOutputStream ms = new ObjectOutputStream (output); System.IO.BinaryWriter bw = new System.IO.BinaryWriter (ms); _items.Serialize (bw); _staticObjects.Serialize (bw); } }