Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
JsonTypeInfoInternal.cs
Go to the documentation of this file.
2
4
5internal sealed class JsonTypeInfoInternal<T> : JsonTypeInfo<T>
6{
11
13 : base(typeof(T), options)
14 {
16 if (objectInfo.ObjectWithParameterizedConstructorCreator != null)
17 {
19 base.CreateObjectWithArgs = objectInfo.ObjectWithParameterizedConstructorCreator;
20 CtorParamInitFunc = objectInfo.ConstructorParameterMetadataInitializer;
21 }
22 else
23 {
25 SetCreateObjectFunc(objectInfo.ObjectCreator);
26 }
27 PropInitFunc = objectInfo.PropertyMetadataInitializer;
28 base.SerializeHandler = objectInfo.SerializeHandler;
30 base.NumberHandling = objectInfo.NumberHandling;
31 }
32
52
54 {
55 if (createObjectFunc != null)
56 {
58 }
59 }
60}
static JsonPropertyInfo CreateJsonPropertyInfoForClassInfo(Type type, JsonTypeInfo typeInfo, JsonConverter converter, JsonSerializerOptions options)
JsonTypeInfoInternal(JsonSerializerOptions options, JsonObjectInfoValues< T > objectInfo)
JsonTypeInfoInternal(JsonSerializerOptions options, JsonCollectionInfoValues< T > collectionInfo, Func< JsonConverter< T > > converterCreator, object createObjectWithArgs=null, object addFunc=null)
Func< JsonSerializerContext, JsonPropertyInfo[]> PropInitFunc
Func< JsonParameterInfoValues[]> CtorParamInitFunc