Ejemplo n.º 1
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteByte("b", b);
     writer.WriteBoolean("bool", bo);
     writer.WriteChar("c", c);
     writer.WriteShort("s", s);
     writer.WriteInt("i", i);
     writer.WriteLong("l", l);
     writer.WriteFloat("f", f);
     writer.WriteDouble("d", d);
     writer.WriteUTF("str", str);
     if (p != null)
     {
         writer.WritePortable("p", p);
     }
     else
     {
         writer.WriteNullPortable("p", TestSerializationConstants.PORTABLE_FACTORY_ID,
                                  TestSerializationConstants.INNER_PORTABLE);
     }
 }
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteByte("b", b);
     writer.WriteBoolean("bool", bo);
     writer.WriteChar("c", c);
     writer.WriteShort("s", s);
     writer.WriteInt("i", i);
     writer.WriteLong("l", l);
     writer.WriteFloat("f", f);
     writer.WriteDouble("d", d);
     writer.WriteUTF("str", str);
     if (p != null)
     {
         writer.WritePortable("p", p);
     }
     else
     {
         writer.WriteNullPortable("p", TestSerializationConstants.PORTABLE_FACTORY_ID,
             TestSerializationConstants.INNER_PORTABLE);
     }
 }