Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
JsonWriterOptions.cs
Go to the documentation of this file.
1
using
System.Text.Encodings.Web
;
2
3
namespace
System.Text.Json
;
4
5
public
struct
JsonWriterOptions
6
{
7
private
int
_optionsMask
;
8
9
public
JavaScriptEncoder
?
Encoder
{
get
;
set
; }
10
11
public
bool
Indented
12
{
13
get
14
{
15
return
(
_optionsMask
& 1) != 0;
16
}
17
set
18
{
19
if
(
value
)
20
{
21
_optionsMask
|= 1;
22
}
23
else
24
{
25
_optionsMask
&= -2;
26
}
27
}
28
}
29
30
public
bool
SkipValidation
31
{
32
get
33
{
34
return
(
_optionsMask
& 2) != 0;
35
}
36
set
37
{
38
if
(
value
)
39
{
40
_optionsMask
|= 2;
41
}
42
else
43
{
44
_optionsMask
&= -3;
45
}
46
}
47
}
48
49
internal
bool
IndentedOrNotSkipValidation
=>
_optionsMask
!= 2;
50
}
System.Text.Encoder
Definition
Encoder.cs:6
System.Text.Encodings.Web.JavaScriptEncoder
Definition
JavaScriptEncoder.cs:6
System.Text.Encodings.Web
Definition
AllowedBmpCodePointsBitmap.cs:6
System.Text.Json
Definition
JsonArray.cs:7
System.ExceptionArgument.value
@ value
System.Text.Json.JsonWriterOptions.Indented
bool Indented
Definition
JsonWriterOptions.cs:12
System.Text.Json.JsonWriterOptions._optionsMask
int _optionsMask
Definition
JsonWriterOptions.cs:7
System.Text.Json.JsonWriterOptions.SkipValidation
bool SkipValidation
Definition
JsonWriterOptions.cs:31
System.Text.Json.JsonWriterOptions.IndentedOrNotSkipValidation
bool IndentedOrNotSkipValidation
Definition
JsonWriterOptions.cs:49
System.Text.Json.JsonWriterOptions
Definition
JsonWriterOptions.cs:6
source
System.Text.Json
System.Text.Json
JsonWriterOptions.cs
Generated by
1.10.0