Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StackOrQueueConverterWithReflection.cs
Go to the documentation of this file.
4
6
8{
9 internal override bool RequiresDynamicMemberAccessors => true;
10
11 [RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
15
16 [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2091:UnrecognizedReflectionPattern", Justification = "The ctor is marked RequiresUnreferencedCode.")]
18 {
19 jsonTypeInfo.AddMethodDelegate = options.MemberAccessorStrategy.CreateAddMethodDelegate<TCollection>();
20 }
21}
override void Initialize(JsonSerializerOptions options, JsonTypeInfo jsonTypeInfo=null)