Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
UnsupportedTypeConverterFactory.cs
Go to the documentation of this file.
3
5
7{
8 public override bool CanConvert(Type type)
9 {
10 if (!(type == typeof(Type)) && !(type == typeof(SerializationInfo)) && !(type == typeof(IntPtr)) && !(type == typeof(UIntPtr)) && !(type == typeof(DateOnly)))
11 {
12 return type == typeof(TimeOnly);
13 }
14 return true;
15 }
16
18 {
19 return (JsonConverter)Activator.CreateInstance(typeof(UnsupportedTypeConverter<>).MakeGenericType(type), BindingFlags.Instance | BindingFlags.Public, null, null, null);
20 }
21}
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
Definition Activator.cs:17
override JsonConverter CreateConverter(Type type, JsonSerializerOptions options)