Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
JsonDocumentOptions.cs
Go to the documentation of this file.
1
namespace
System.Text.Json
;
2
3
public
struct
JsonDocumentOptions
4
{
5
private
int
_maxDepth
;
6
7
private
JsonCommentHandling
_commentHandling
;
8
9
public
JsonCommentHandling
CommentHandling
10
{
11
readonly
get
12
{
13
return
_commentHandling
;
14
}
15
set
16
{
17
if
((
int
)
value
> 1)
18
{
19
throw
new
ArgumentOutOfRangeException
(
"value"
,
System
.
SR
.
JsonDocumentDoesNotSupportComments
);
20
}
21
_commentHandling
=
value
;
22
}
23
}
24
25
public
int
MaxDepth
26
{
27
readonly
get
28
{
29
return
_maxDepth
;
30
}
31
set
32
{
33
if
(
value
< 0)
34
{
35
throw
ThrowHelper
.
GetArgumentOutOfRangeException_MaxDepthMustBePositive
(
"value"
);
36
}
37
_maxDepth
=
value
;
38
}
39
}
40
41
public
bool
AllowTrailingCommas
{
get
;
set
; }
42
43
internal
JsonReaderOptions
GetReaderOptions
()
44
{
45
JsonReaderOptions
result =
default
(
JsonReaderOptions
);
46
result.AllowTrailingCommas
=
AllowTrailingCommas
;
47
result.CommentHandling
=
CommentHandling
;
48
result.MaxDepth
=
MaxDepth
;
49
return
result;
50
}
51
}
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.SR.JsonDocumentDoesNotSupportComments
static string JsonDocumentDoesNotSupportComments
Definition
SR.cs:88
System.SR
Definition
SR.cs:7
System.Text.Json.ThrowHelper.GetArgumentOutOfRangeException_MaxDepthMustBePositive
static ArgumentOutOfRangeException GetArgumentOutOfRangeException_MaxDepthMustBePositive(string parameterName)
Definition
ThrowHelper.cs:19
System.Text.Json.ThrowHelper
Definition
ThrowHelper.cs:11
System.Text.Json.ConverterStrategy.Dictionary
@ Dictionary
System.Text.Json.JsonCommentHandling
JsonCommentHandling
Definition
JsonCommentHandling.cs:4
System.Text.Json
Definition
JsonArray.cs:7
System.ExceptionArgument.value
@ value
System
Definition
BlockingCollection.cs:8
System.Text.Json.JsonDocumentOptions._maxDepth
int _maxDepth
Definition
JsonDocumentOptions.cs:5
System.Text.Json.JsonDocumentOptions.MaxDepth
int MaxDepth
Definition
JsonDocumentOptions.cs:26
System.Text.Json.JsonDocumentOptions.CommentHandling
JsonCommentHandling CommentHandling
Definition
JsonDocumentOptions.cs:10
System.Text.Json.JsonDocumentOptions.AllowTrailingCommas
bool AllowTrailingCommas
Definition
JsonDocumentOptions.cs:41
System.Text.Json.JsonDocumentOptions.GetReaderOptions
JsonReaderOptions GetReaderOptions()
Definition
JsonDocumentOptions.cs:43
System.Text.Json.JsonDocumentOptions._commentHandling
JsonCommentHandling _commentHandling
Definition
JsonDocumentOptions.cs:7
System.Text.Json.JsonDocumentOptions
Definition
JsonDocumentOptions.cs:4
System.Text.Json.JsonReaderOptions
Definition
JsonReaderOptions.cs:4
source
System.Text.Json
System.Text.Json
JsonDocumentOptions.cs
Generated by
1.10.0