-Reorganized samples

This commit is contained in:
James Newton-King
2013-01-25 00:23:03 +13:00
parent 253a0dae8e
commit 406762b187
60 changed files with 117 additions and 116 deletions
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using Newtonsoft.Json.Serialization;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class CustomContractResolver
{
@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class CustomJsonConverter
{
@@ -5,7 +5,7 @@ using System.Diagnostics;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class CustomTraceWriter
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DataContractAndDataMember
{
@@ -4,7 +4,7 @@ using System.ComponentModel;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DefaultValueAttributeIgnore
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DefaultValueHandlingIgnore
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeAnonymousType
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeCollection
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Reflection;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeConstructorHandling
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using Newtonsoft.Json.Converters;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeCustomCreationConverter
{
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using NUnit.Framework;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeDataSet
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeDictionary
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeMissingMemberHandling
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeObject
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeObjectCreationHandling
{
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using File = System.IO.File;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class DeserializeWithJsonSerializerFromFile
{
@@ -5,7 +5,7 @@ using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class ErrorHandlingAttribute
{
@@ -5,7 +5,7 @@ using System.Text;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class ErrorHandlingEvent
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using Newtonsoft.Json.Converters;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class JsonConverterAttributeClass
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using Newtonsoft.Json.Converters;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class JsonConverterAttributeProperty
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class JsonObjectAttributeOptIn
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Collections;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class JsonObjectAttributeOverrideIEnumerable
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class JsonPropertyItemLevelSetting
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class JsonPropertyName
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class JsonPropertyOrder
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class JsonPropertyPropertyLevelSetting
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class JsonPropertyRequired
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class MaxDepth
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class NullValueHandlingIgnore
{
@@ -35,7 +35,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Examples
string jsonIgnoreNullValues = JsonConvert.SerializeObject(person, Formatting.Indented, new JsonSerializerSettings
{
NullValueHandling = Json.NullValueHandling.Ignore
NullValueHandling = NullValueHandling.Ignore
});
Console.WriteLine(jsonIgnoreNullValues);
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class PopulateObject
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class PropertyJsonIgnore
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class ReferenceLoopHandlingIgnore
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class ReferenceLoopHandlingObject
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializationCallbackAttributes
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeCollection
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeConditionalProperty
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using Newtonsoft.Json.Serialization;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeContractResolver
{
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using NUnit.Framework;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeDataSet
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeDateFormatHandling
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeDateTimeZoneHandling
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeDictionary
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeObject
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using Newtonsoft.Json.Linq;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeRawJson
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeSerializationBinder
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeTypeNameHandling
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeUnindentedJson
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using Newtonsoft.Json.Converters;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeWithJsonConverters
{
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using File = System.IO.File;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class SerializeWithJsonSerializerToFile
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using Newtonsoft.Json.Serialization;
namespace Newtonsoft.Json.Tests.Documentation.Examples
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
{
public class TraceWriter
{