-Change FloatFormatHandling.Zero to DefaultValue

-Documentation
This commit is contained in:
James Newton-King
2013-02-09 23:17:05 +13:00
parent 95dd0c0ba4
commit 01c3d48ecf
20 changed files with 307 additions and 28 deletions
@@ -24,6 +24,7 @@
#endregion
using System;
using Newtonsoft.Json.Utilities;
namespace Newtonsoft.Json.Serialization
{
@@ -32,6 +33,8 @@ namespace Newtonsoft.Json.Serialization
/// </summary>
public class JsonPrimitiveContract : JsonContract
{
internal bool Nullable { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="JsonPrimitiveContract"/> class.
/// </summary>
@@ -40,6 +43,8 @@ namespace Newtonsoft.Json.Serialization
: base(underlyingType)
{
ContractType = JsonContractType.Primitive;
Nullable = ReflectionUtils.IsNullable(underlyingType);
}
}
}