public BMSByte Serialized()
{
serializeBuffer.Clear();
foreach (var property in Properties)
{
object val = property.GetValue(this, null);
if (property.PropertyType == typeof(string))
serializeBuffer.Append(BitConverter.GetBytes(((string)val).Length));
ObjectMapper.MapBytes(serializeBuffer, val);
}
return serializeBuffer;
}