MCPcopy Create free account
hub / github.com/apache/fory / ReadData

Method ReadData

csharp/src/Fory/AnySerializer.cs:34–43  ·  view source on GitHub ↗
(ReadContext context)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

GetReadTypeInfoMethod · 0.80
ReadAnyValueMethod · 0.80

Tested by

no test coverage detected