Files
Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JsonLoadSettings.cs
T
James Newton-King 2bf31b9605 -Added JsonLoadSettings
-Added CommentsHandling
-Changed LINQ to JSON load to ignore array comments by default
2015-10-06 22:17:25 +13:00

30 lines
801 B
C#

using System;
namespace Newtonsoft.Json.Linq
{
/// <summary>
/// Specifies the settings used when loading JSON.
/// </summary>
public class JsonLoadSettings
{
private CommentHandling _commentHandling;
/// <summary>
/// Gets or sets how JSON comments are handled when loading JSON.
/// </summary>
/// <value>The JSON comment handling.</value>
public CommentHandling CommentHandling
{
get { return _commentHandling; }
set
{
if (value < CommentHandling.Ignore || value > CommentHandling.Load)
{
throw new ArgumentOutOfRangeException("value");
}
_commentHandling = value;
}
}
}
}