public void Serialize(IRecordFieldSerializer serializer, TestReferenceRecord record)
 {
     serializer.Write(nameof(ByteValue), record.ByteValue);
     serializer.Write(nameof(SbyteValue), record.SbyteValue);
     serializer.Write(nameof(UShortValue), record.UShortValue);
     serializer.Write(nameof(ShortValue), record.ShortValue);
     serializer.Write(nameof(UIntValue), record.UIntValue);
     serializer.Write(nameof(IntValue), record.IntValue);
     serializer.Write(nameof(ULongValue), record.ULongValue);
     serializer.Write(nameof(LongValue), record.LongValue);
     serializer.Write(nameof(StringValue), record.StringValue);
     serializer.Write(nameof(DoubleValue), record.DoubleValue);
     serializer.WriteValueField(nameof(NumberValue), record.NumberValue);
     serializer.WriteReferenceField(nameof(NumberArray), record.NumberArray);
 }
Example #2
0
 public void Serialize(IRecordFieldSerializer serializer, ReadOnlyArrayWrapper <T> record)
 {
     serializer.WriteValueField(string.Empty, record.Value);
 }