Ejemplo n.º 1
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            var money = (Money?)value;

            if (money.HasValue)
            {
                _writer.WriteTo(money.Value, serializer.ContractResolver, writer);
            }
        }
Ejemplo n.º 2
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            var instance = (Money)value;

            _writer.WriteTo(instance, serializer.ContractResolver, writer);
        }