(ReadContext context)
| 32 | } |
| 33 | |
| 34 | public override object? ReadData(ReadContext context) |
| 35 | { |
| 36 | TypeInfo? typeInfo = context.GetReadTypeInfo(typeof(object)); |
| 37 | if (typeInfo is null) |
| 38 | { |
| 39 | throw new InvalidDataException("dynamic Any value requires type info"); |
| 40 | } |
| 41 | |
| 42 | return context.TypeResolver.ReadAnyValue(typeInfo, context); |
| 43 | } |
| 44 | |
| 45 | public override void Write(WriteContext context, in object? value, RefMode refMode, bool writeTypeInfo, bool hasGenerics) |
| 46 | { |
nothing calls this directly
no test coverage detected