Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
UnsupportedTypeConverter.cs
Go to the documentation of this file.
1
namespace
System.Text.Json.Serialization.Converters
;
2
3
internal
sealed
class
UnsupportedTypeConverter
<T> :
JsonConverter
<T>
4
{
5
public
override
T
Read
(
ref
Utf8JsonReader
reader,
Type
typeToConvert
,
JsonSerializerOptions
options
)
6
{
7
throw
new
NotSupportedException
(
System
.
SR
.
Format
(
System
.
SR
.
SerializeTypeInstanceNotSupported
,
typeof
(T).
FullName
));
8
}
9
10
public
override
void
Write
(
Utf8JsonWriter
writer
, T
value
,
JsonSerializerOptions
options
)
11
{
12
throw
new
NotSupportedException
(
System
.
SR
.
Format
(
System
.
SR
.
SerializeTypeInstanceNotSupported
,
typeof
(T).
FullName
));
13
}
14
}
System.NotSupportedException
Definition
NotSupportedException.cs:9
System.SR.SerializeTypeInstanceNotSupported
static string SerializeTypeInstanceNotSupported
Definition
SR.cs:256
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR
Definition
SR.cs:7
System.Text.Json.JsonSerializerOptions
Definition
JsonSerializerOptions.cs:17
System.Text.Json.Serialization.Converters.UnsupportedTypeConverter.Write
override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
Definition
UnsupportedTypeConverter.cs:10
System.Text.Json.Serialization.Converters.UnsupportedTypeConverter.Read
override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Definition
UnsupportedTypeConverter.cs:5
System.Text.Json.Serialization.Converters.UnsupportedTypeConverter
Definition
UnsupportedTypeConverter.cs:4
System.Text.Json.Serialization.JsonConverter
Definition
JsonConverter.cs:119
System.Text.Json.Utf8JsonWriter
Definition
Utf8JsonWriter.cs:14
System.Type
Definition
Type.cs:14
System.Text.Json.Serialization.Converters
Definition
ArrayConverter.cs:3
System.Text.Json.ConverterStrategy.Dictionary
@ Dictionary
System.TypeNameKind.FullName
@ FullName
System.ExceptionArgument.value
@ value
System.ExceptionArgument.options
@ options
System.ExceptionArgument.writer
@ writer
System
Definition
BlockingCollection.cs:8
System.Text.Json.Utf8JsonReader
Definition
Utf8JsonReader.cs:12
source
System.Text.Json
System.Text.Json.Serialization.Converters
UnsupportedTypeConverter.cs
Generated by
1.10.0