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