-Documentation

-Example unit tests for documentation
-Added IsReference to JsonPropertyAttribute
-Fixed resolving whether a property should be a reference
This commit is contained in:
JamesNK
2009-07-06 09:36:03 +00:00
parent a4022ec5d3
commit 265abaf08c
11 changed files with 294 additions and 267 deletions
@@ -13,6 +13,7 @@ namespace Newtonsoft.Json
internal NullValueHandling? _nullValueHandling;
internal DefaultValueHandling? _defaultValueHandling;
internal ReferenceLoopHandling? _referenceLoopHandling;
internal bool? _isReference;
/// <summary>
/// Gets or sets the null value handling used when serializing this property.
@@ -44,6 +45,16 @@ namespace Newtonsoft.Json
set { _referenceLoopHandling = value; }
}
/// <summary>
/// Gets or sets whether this property's value is serialized as a reference.
/// </summary>
/// <value>Whether this property's value is serialized as a reference.</value>
public bool IsReference
{
get { return _isReference ?? default(bool); }
set { _isReference = value; }
}
/// <summary>
/// Gets or sets the name of the property.
/// </summary>