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);
 }
示例#2
0
 public override void EncodeObject(object value, bool arrayEncoding, ByteBuffer buffer)
 {
     if (arrayEncoding)
     {
         DecimalEncoding.EncodeValue((decimal)value, buffer);
     }
     else
     {
         DecimalEncoding.Encode((decimal)value, buffer);
     }
 }