public override byte[] Serialize(Pointer p) { base.Serialize(p); BitPacker.AddBool(ref m_SerializeBuffer, p, Remove); BitPacker.AddString(ref m_SerializeBuffer, p, PropertyBagId.ToString()); BitPacker.AddInt(ref m_SerializeBuffer, p, Properties.Length); for (int i = 0; i < Properties.Length; i++) { BitPacker.AddProperty(ref m_SerializeBuffer, p, Properties[i]); } return(m_SerializeBuffer); }