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

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

            var target = new ScopeLite
            {
                Name = source.Name
            };

            serializer.Serialize(writer, target);
        }