コード例 #1
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            Claim source = (Claim)value;

            var target = new ClaimLite {
                Type = source.Type,
                Value = source.Value 
            };
            serializer.Serialize(writer, target);
        }
コード例 #2
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            Claim source = (Claim)value;

            var target = new ClaimLite {
                Type  = source.Type,
                Value = source.Value
            };

            serializer.Serialize(writer, target);
        }