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

Method ReadTypedCaseValue

csharp/src/Fory/UnionSerializer.cs:194–199  ·  view source on GitHub ↗
(ReadContext context, Type caseType)

Source from the content-addressed store, hash-verified

192 }
193
194 private static object? ReadTypedCaseValue(ReadContext context, Type caseType)
195 {
196 TypeInfo typeInfo = context.TypeResolver.GetTypeInfo(caseType);
197 object? value = context.TypeResolver.ReadObject(typeInfo, context, RefMode.Tracking, readTypeInfo: true);
198 return NormalizeCaseValue(value, caseType);
199 }
200
201 private static object? NormalizeCaseValue(object? value, Type targetType)
202 {

Callers

nothing calls this directly

Calls 2

GetTypeInfoMethod · 0.45
ReadObjectMethod · 0.45

Tested by

no test coverage detected