public void Serialize(ITeslaWriter writer) { writer.WriteObjectBegin("InnerClass"); writer.Write("m_float", m_float); writer.Write("m_double", m_double); writer.Write("m_bool", m_bool); writer.WriteObjectEnd("InnerClass"); }
public void Serialize(ITeslaWriter writer) { writer.WriteObjectBegin("SampleClass"); writer.Write("m_int", m_int); writer.Write("m_byte", m_byte); writer.WriteInt64Array("m_longarray", m_longarray, false, 1); writer.Write("m_string", m_string, false); writer.Write("m_obj", m_obj, true); writer.WriteObjectEnd("SampleClass"); }