Exemplo n.º 1
0
            public override object ReadJson(JsonReader reader, Type objectType, object existingValue,
                                            JsonSerializer serializer)
            {
                EloValues eloValues = (existingValue == null) ? new EloValues() : ((EloValues)existingValue);

                serializer.Populate(reader, eloValues.Values);
                return(eloValues);
            }
Exemplo n.º 2
0
            public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
            {
                EloValues eloValues = (EloValues)value;

                serializer.Serialize(writer, eloValues.Values);
            }