-Reorganized samples
This commit is contained in:
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Bson;
|
using Newtonsoft.Json.Bson;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Bson
|
||||||
{
|
{
|
||||||
public class DeserializeFromBson
|
public class DeserializeFromBson
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Bson;
|
using Newtonsoft.Json.Bson;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Bson
|
||||||
{
|
{
|
||||||
public class DeserializeFromBsonCollection
|
public class DeserializeFromBsonCollection
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Text;
|
|||||||
using Newtonsoft.Json.Bson;
|
using Newtonsoft.Json.Bson;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Bson
|
||||||
{
|
{
|
||||||
public class SerializeToBson
|
public class SerializeToBson
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Json
|
||||||
{
|
{
|
||||||
public class ReadJsonWithJsonTextReader
|
public class ReadJsonWithJsonTextReader
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Json
|
||||||
{
|
{
|
||||||
public class WriteJsonWithJsonTextWriter
|
public class WriteJsonWithJsonTextWriter
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class CustomContractResolver
|
public class CustomContractResolver
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class CustomJsonConverter
|
public class CustomJsonConverter
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Diagnostics;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class CustomTraceWriter
|
public class CustomTraceWriter
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DataContractAndDataMember
|
public class DataContractAndDataMember
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.ComponentModel;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DefaultValueAttributeIgnore
|
public class DefaultValueAttributeIgnore
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DefaultValueHandlingIgnore
|
public class DefaultValueHandlingIgnore
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeAnonymousType
|
public class DeserializeAnonymousType
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeCollection
|
public class DeserializeCollection
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeConstructorHandling
|
public class DeserializeConstructorHandling
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeCustomCreationConverter
|
public class DeserializeCustomCreationConverter
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeDataSet
|
public class DeserializeDataSet
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeDictionary
|
public class DeserializeDictionary
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeMissingMemberHandling
|
public class DeserializeMissingMemberHandling
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeObject
|
public class DeserializeObject
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeObjectCreationHandling
|
public class DeserializeObjectCreationHandling
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using File = System.IO.File;
|
using File = System.IO.File;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class DeserializeWithJsonSerializerFromFile
|
public class DeserializeWithJsonSerializerFromFile
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class ErrorHandlingAttribute
|
public class ErrorHandlingAttribute
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Text;
|
|||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class ErrorHandlingEvent
|
public class ErrorHandlingEvent
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class JsonConverterAttributeClass
|
public class JsonConverterAttributeClass
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class JsonConverterAttributeProperty
|
public class JsonConverterAttributeProperty
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class JsonObjectAttributeOptIn
|
public class JsonObjectAttributeOptIn
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class JsonObjectAttributeOverrideIEnumerable
|
public class JsonObjectAttributeOverrideIEnumerable
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class JsonPropertyItemLevelSetting
|
public class JsonPropertyItemLevelSetting
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class JsonPropertyName
|
public class JsonPropertyName
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class JsonPropertyOrder
|
public class JsonPropertyOrder
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class JsonPropertyPropertyLevelSetting
|
public class JsonPropertyPropertyLevelSetting
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class JsonPropertyRequired
|
public class JsonPropertyRequired
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class MaxDepth
|
public class MaxDepth
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class NullValueHandlingIgnore
|
public class NullValueHandlingIgnore
|
||||||
{
|
{
|
||||||
@@ -35,7 +35,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Examples
|
|||||||
|
|
||||||
string jsonIgnoreNullValues = JsonConvert.SerializeObject(person, Formatting.Indented, new JsonSerializerSettings
|
string jsonIgnoreNullValues = JsonConvert.SerializeObject(person, Formatting.Indented, new JsonSerializerSettings
|
||||||
{
|
{
|
||||||
NullValueHandling = Json.NullValueHandling.Ignore
|
NullValueHandling = NullValueHandling.Ignore
|
||||||
});
|
});
|
||||||
|
|
||||||
Console.WriteLine(jsonIgnoreNullValues);
|
Console.WriteLine(jsonIgnoreNullValues);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class PopulateObject
|
public class PopulateObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class PropertyJsonIgnore
|
public class PropertyJsonIgnore
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class ReferenceLoopHandlingIgnore
|
public class ReferenceLoopHandlingIgnore
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class ReferenceLoopHandlingObject
|
public class ReferenceLoopHandlingObject
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializationCallbackAttributes
|
public class SerializationCallbackAttributes
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeCollection
|
public class SerializeCollection
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeConditionalProperty
|
public class SerializeConditionalProperty
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeContractResolver
|
public class SerializeContractResolver
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeDataSet
|
public class SerializeDataSet
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeDateFormatHandling
|
public class SerializeDateFormatHandling
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeDateTimeZoneHandling
|
public class SerializeDateTimeZoneHandling
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeDictionary
|
public class SerializeDictionary
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeObject
|
public class SerializeObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeRawJson
|
public class SerializeRawJson
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeSerializationBinder
|
public class SerializeSerializationBinder
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeTypeNameHandling
|
public class SerializeTypeNameHandling
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeUnindentedJson
|
public class SerializeUnindentedJson
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeWithJsonConverters
|
public class SerializeWithJsonConverters
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using File = System.IO.File;
|
using File = System.IO.File;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class SerializeWithJsonSerializerToFile
|
public class SerializeWithJsonSerializerToFile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Serializer
|
||||||
{
|
{
|
||||||
public class TraceWriter
|
public class TraceWriter
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Xml
|
||||||
{
|
{
|
||||||
public class ConvertJsonToXml
|
public class ConvertJsonToXml
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Xml
|
||||||
{
|
{
|
||||||
public class ConvertXmlToJson
|
public class ConvertXmlToJson
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
namespace Newtonsoft.Json.Tests.Documentation.Examples
|
namespace Newtonsoft.Json.Tests.Documentation.Examples.Xml
|
||||||
{
|
{
|
||||||
public class ConvertXmlToJsonForceArray
|
public class ConvertXmlToJsonForceArray
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -119,23 +119,15 @@
|
|||||||
<Compile Include="Converters\VersionConverterTests.cs" />
|
<Compile Include="Converters\VersionConverterTests.cs" />
|
||||||
<Compile Include="Documentation\ConvertingJsonAndXmlTests.cs" />
|
<Compile Include="Documentation\ConvertingJsonAndXmlTests.cs" />
|
||||||
<Compile Include="Documentation\ConditionalPropertiesTests.cs" />
|
<Compile Include="Documentation\ConditionalPropertiesTests.cs" />
|
||||||
<Compile Include="Documentation\Examples\ConvertJsonToXml.cs" />
|
<Compile Include="Documentation\Examples\Bson\DeserializeFromBson.cs" />
|
||||||
<Compile Include="Documentation\Examples\ConvertXmlToJson.cs" />
|
<Compile Include="Documentation\Examples\Bson\DeserializeFromBsonCollection.cs" />
|
||||||
<Compile Include="Documentation\Examples\ConvertXmlToJsonForceArray.cs" />
|
<Compile Include="Documentation\Examples\Bson\SerializeToBson.cs" />
|
||||||
<Compile Include="Documentation\Examples\DeserializeDataSet.cs" />
|
<Compile Include="Documentation\Examples\Json\ReadJsonWithJsonTextReader.cs" />
|
||||||
<Compile Include="Documentation\Examples\JsonObjectAttributeOverrideIEnumerable.cs" />
|
<Compile Include="Documentation\Examples\Json\WriteJsonWithJsonTextWriter.cs" />
|
||||||
<Compile Include="Documentation\Examples\CustomJsonConverter.cs" />
|
|
||||||
<Compile Include="Documentation\Examples\CustomTraceWriter.cs" />
|
|
||||||
<Compile Include="Documentation\Examples\DeserializeFromBson.cs" />
|
|
||||||
<Compile Include="Documentation\Examples\DeserializeFromBsonCollection.cs" />
|
|
||||||
<Compile Include="Documentation\Examples\DeserializeObjectCreationHandling.cs" />
|
|
||||||
<Compile Include="Documentation\Examples\ErrorHandlingAttribute.cs" />
|
|
||||||
<Compile Include="Documentation\Examples\Linq\QueryJsonLinq.cs" />
|
<Compile Include="Documentation\Examples\Linq\QueryJsonLinq.cs" />
|
||||||
<Compile Include="Documentation\Examples\Linq\QueryJson.cs" />
|
<Compile Include="Documentation\Examples\Linq\QueryJson.cs" />
|
||||||
<Compile Include="Documentation\Examples\Linq\QueryJsonSelectTokenWithLinq.cs" />
|
<Compile Include="Documentation\Examples\Linq\QueryJsonSelectTokenWithLinq.cs" />
|
||||||
<Compile Include="Documentation\Examples\Linq\QueryJsonSelectToken.cs" />
|
<Compile Include="Documentation\Examples\Linq\QueryJsonSelectToken.cs" />
|
||||||
<Compile Include="Documentation\Examples\MaxDepth.cs" />
|
|
||||||
<Compile Include="Documentation\Examples\ReadJsonWithJsonTextReader.cs" />
|
|
||||||
<Compile Include="Documentation\Examples\Schema\JTokenValidateWithEvent.cs" />
|
<Compile Include="Documentation\Examples\Schema\JTokenValidateWithEvent.cs" />
|
||||||
<Compile Include="Documentation\Examples\Schema\JTokenIsValidWithMessages.cs" />
|
<Compile Include="Documentation\Examples\Schema\JTokenIsValidWithMessages.cs" />
|
||||||
<Compile Include="Documentation\Examples\Schema\CreateJsonSchemaManually.cs" />
|
<Compile Include="Documentation\Examples\Schema\CreateJsonSchemaManually.cs" />
|
||||||
@@ -176,49 +168,58 @@
|
|||||||
<Compile Include="Documentation\Examples\Linq\WriteToJsonFile.cs" />
|
<Compile Include="Documentation\Examples\Linq\WriteToJsonFile.cs" />
|
||||||
<Compile Include="Documentation\Examples\Linq\ReadJson.cs" />
|
<Compile Include="Documentation\Examples\Linq\ReadJson.cs" />
|
||||||
<Compile Include="Documentation\Examples\Schema\LoadJsonSchemaFromFile.cs" />
|
<Compile Include="Documentation\Examples\Schema\LoadJsonSchemaFromFile.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeDataSet.cs" />
|
<Compile Include="Documentation\Examples\Serializer\CustomContractResolver.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeDictionary.cs" />
|
<Compile Include="Documentation\Examples\Serializer\CustomJsonConverter.cs" />
|
||||||
<Compile Include="Documentation\Examples\CustomContractResolver.cs" />
|
<Compile Include="Documentation\Examples\Serializer\CustomTraceWriter.cs" />
|
||||||
<Compile Include="Documentation\Examples\DataContractAndDataMember.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DataContractAndDataMember.cs" />
|
||||||
<Compile Include="Documentation\Examples\DefaultValueAttributeIgnore.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DefaultValueAttributeIgnore.cs" />
|
||||||
<Compile Include="Documentation\Examples\DefaultValueHandlingIgnore.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DefaultValueHandlingIgnore.cs" />
|
||||||
<Compile Include="Documentation\Examples\DeserializeAnonymousType.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeAnonymousType.cs" />
|
||||||
<Compile Include="Documentation\Examples\DeserializeConstructorHandling.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeCollection.cs" />
|
||||||
<Compile Include="Documentation\Examples\DeserializeMissingMemberHandling.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeConstructorHandling.cs" />
|
||||||
<Compile Include="Documentation\Examples\DeserializeWithJsonSerializerFromFile.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeCustomCreationConverter.cs" />
|
||||||
<Compile Include="Documentation\Examples\DeserializeCollection.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeDataSet.cs" />
|
||||||
<Compile Include="Documentation\Examples\DeserializeDictionary.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeDictionary.cs" />
|
||||||
<Compile Include="Documentation\Examples\DeserializeObject.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeMissingMemberHandling.cs" />
|
||||||
<Compile Include="Documentation\Examples\ErrorHandlingEvent.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeObject.cs" />
|
||||||
<Compile Include="Documentation\Examples\JsonConverterAttributeClass.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeObjectCreationHandling.cs" />
|
||||||
<Compile Include="Documentation\Examples\JsonObjectAttributeOptIn.cs" />
|
<Compile Include="Documentation\Examples\Serializer\DeserializeWithJsonSerializerFromFile.cs" />
|
||||||
<Compile Include="Documentation\Examples\JsonPropertyName.cs" />
|
<Compile Include="Documentation\Examples\Serializer\ErrorHandlingAttribute.cs" />
|
||||||
<Compile Include="Documentation\Examples\JsonPropertyOrder.cs" />
|
<Compile Include="Documentation\Examples\Serializer\ErrorHandlingEvent.cs" />
|
||||||
<Compile Include="Documentation\Examples\JsonPropertyItemLevelSetting.cs" />
|
<Compile Include="Documentation\Examples\Serializer\JsonConverterAttributeClass.cs" />
|
||||||
<Compile Include="Documentation\Examples\JsonPropertyPropertyLevelSetting.cs" />
|
<Compile Include="Documentation\Examples\Serializer\JsonConverterAttributeProperty.cs" />
|
||||||
<Compile Include="Documentation\Examples\JsonPropertyRequired.cs" />
|
<Compile Include="Documentation\Examples\Serializer\JsonObjectAttributeOptIn.cs" />
|
||||||
<Compile Include="Documentation\Examples\NullValueHandlingIgnore.cs" />
|
<Compile Include="Documentation\Examples\Serializer\JsonObjectAttributeOverrideIEnumerable.cs" />
|
||||||
<Compile Include="Documentation\Examples\PopulateObject.cs" />
|
<Compile Include="Documentation\Examples\Serializer\JsonPropertyItemLevelSetting.cs" />
|
||||||
<Compile Include="Documentation\Examples\PropertyJsonIgnore.cs" />
|
<Compile Include="Documentation\Examples\Serializer\JsonPropertyName.cs" />
|
||||||
<Compile Include="Documentation\Examples\ReferenceLoopHandlingIgnore.cs" />
|
<Compile Include="Documentation\Examples\Serializer\JsonPropertyOrder.cs" />
|
||||||
<Compile Include="Documentation\Examples\ReferenceLoopHandlingObject.cs" />
|
<Compile Include="Documentation\Examples\Serializer\JsonPropertyPropertyLevelSetting.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializationCallbackAttributes.cs" />
|
<Compile Include="Documentation\Examples\Serializer\JsonPropertyRequired.cs" />
|
||||||
<Compile Include="Documentation\Examples\DeserializeCustomCreationConverter.cs" />
|
<Compile Include="Documentation\Examples\Serializer\MaxDepth.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeContractResolver.cs" />
|
<Compile Include="Documentation\Examples\Serializer\NullValueHandlingIgnore.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeDateTimeZoneHandling.cs" />
|
<Compile Include="Documentation\Examples\Serializer\PopulateObject.cs" />
|
||||||
<Compile Include="Documentation\Examples\JsonConverterAttributeProperty.cs" />
|
<Compile Include="Documentation\Examples\Serializer\PropertyJsonIgnore.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeRawJson.cs" />
|
<Compile Include="Documentation\Examples\Serializer\ReferenceLoopHandlingIgnore.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeSerializationBinder.cs" />
|
<Compile Include="Documentation\Examples\Serializer\ReferenceLoopHandlingObject.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeCollection.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializationCallbackAttributes.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeDateFormatHandling.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializeCollection.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeObject.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializeConditionalProperty.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeToBson.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializeContractResolver.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeTypeNameHandling.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializeDataSet.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeUnindentedJson.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializeDateFormatHandling.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeWithJsonConverters.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializeDateTimeZoneHandling.cs" />
|
||||||
<Compile Include="Documentation\Examples\SerializeWithJsonSerializerToFile.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializeDictionary.cs" />
|
||||||
<Compile Include="Documentation\Examples\TraceWriter.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializeObject.cs" />
|
||||||
<Compile Include="Documentation\Examples\WriteJsonWithJsonTextWriter.cs" />
|
<Compile Include="Documentation\Examples\Serializer\SerializeRawJson.cs" />
|
||||||
|
<Compile Include="Documentation\Examples\Serializer\SerializeSerializationBinder.cs" />
|
||||||
|
<Compile Include="Documentation\Examples\Serializer\SerializeTypeNameHandling.cs" />
|
||||||
|
<Compile Include="Documentation\Examples\Serializer\SerializeUnindentedJson.cs" />
|
||||||
|
<Compile Include="Documentation\Examples\Serializer\SerializeWithJsonConverters.cs" />
|
||||||
|
<Compile Include="Documentation\Examples\Serializer\SerializeWithJsonSerializerToFile.cs" />
|
||||||
|
<Compile Include="Documentation\Examples\Serializer\TraceWriter.cs" />
|
||||||
|
<Compile Include="Documentation\Examples\Xml\ConvertJsonToXml.cs" />
|
||||||
|
<Compile Include="Documentation\Examples\Xml\ConvertXmlToJson.cs" />
|
||||||
|
<Compile Include="Documentation\Examples\Xml\ConvertXmlToJsonForceArray.cs" />
|
||||||
<Compile Include="Documentation\TraceWriterTests.cs" />
|
<Compile Include="Documentation\TraceWriterTests.cs" />
|
||||||
<Compile Include="Documentation\JsonNetVsWindowsDataJsonTests.cs" />
|
<Compile Include="Documentation\JsonNetVsWindowsDataJsonTests.cs" />
|
||||||
<Compile Include="Documentation\PerformanceTests.cs" />
|
<Compile Include="Documentation\PerformanceTests.cs" />
|
||||||
|
|||||||
@@ -76,5 +76,5 @@ using System.Security;
|
|||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("4.5.0.0")]
|
[assembly: AssemblyVersion("4.5.0.0")]
|
||||||
#if !PocketPC
|
#if !PocketPC
|
||||||
[assembly: AssemblyFileVersion("4.5.11.15724")]
|
[assembly: AssemblyFileVersion("4.5.11.15725")]
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ using System.Security;
|
|||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("4.5.0.0")]
|
[assembly: AssemblyVersion("4.5.0.0")]
|
||||||
#if !PocketPC
|
#if !PocketPC
|
||||||
[assembly: AssemblyFileVersion("4.5.11.15724")]
|
[assembly: AssemblyFileVersion("4.5.11.15725")]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[assembly: CLSCompliant(true)]
|
[assembly: CLSCompliant(true)]
|
||||||
|
|||||||
Reference in New Issue
Block a user