(WriteContext context, Type caseType, object? value)
| 179 | } |
| 180 | |
| 181 | private static void WriteTypedCaseValue(WriteContext context, Type caseType, object? value) |
| 182 | { |
| 183 | object? normalized = NormalizeCaseValue(value, caseType); |
| 184 | TypeInfo typeInfo = context.TypeResolver.GetTypeInfo(caseType); |
| 185 | context.TypeResolver.WriteObject( |
| 186 | typeInfo, |
| 187 | context, |
| 188 | normalized, |
| 189 | RefMode.Tracking, |
| 190 | writeTypeInfo: true, |
| 191 | hasGenerics: caseType.IsGenericType); |
| 192 | } |
| 193 | |
| 194 | private static object? ReadTypedCaseValue(ReadContext context, Type caseType) |
| 195 | { |
nothing calls this directly
no test coverage detected