public override void EncodeObject(object value, bool arrayEncoding, ByteBuffer buffer) { if (arrayEncoding) { DecimalEncoding.EncodeValue((decimal)value, buffer); return; } DecimalEncoding.Encode(new decimal?((decimal)value), buffer); }
public override void EncodeObject(object value, bool arrayEncoding, ByteBuffer buffer) { if (arrayEncoding) { DecimalEncoding.EncodeValue((decimal)value, buffer); } else { DecimalEncoding.Encode((decimal)value, buffer); } }