chore: 初始化合力驱动桥MES采集程序
This commit is contained in:
49
Common/00-1Json8.3/Json8.3/Linq/JsonLoadSettings.cs
Normal file
49
Common/00-1Json8.3/Json8.3/Linq/JsonLoadSettings.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
|
||||
namespace Newtonsoft.Json.Linq
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the settings used when loading JSON.
|
||||
/// </summary>
|
||||
public class JsonLoadSettings
|
||||
{
|
||||
private CommentHandling _commentHandling;
|
||||
private LineInfoHandling _lineInfoHandling;
|
||||
|
||||
/// <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(nameof(value));
|
||||
}
|
||||
|
||||
_commentHandling = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets how JSON line info is handled when loading JSON.
|
||||
/// </summary>
|
||||
/// <value>The JSON line info handling.</value>
|
||||
public LineInfoHandling LineInfoHandling
|
||||
{
|
||||
get { return _lineInfoHandling; }
|
||||
set
|
||||
{
|
||||
if (value < LineInfoHandling.Ignore || value > LineInfoHandling.Load)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(value));
|
||||
}
|
||||
|
||||
_lineInfoHandling = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user