< Summary

Information
Class: System.Text.Json.Serialization.Converters.LargeObjectWithParameterizedConstructorConverterWithReflection<T>
Assembly: System.Text.Json
File(s): C:\h\w\B31A098C\w\BB5A0A33\e\runtime-utils\Runner\runtime\src\libraries\System.Text.Json\src\System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.Reflection.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 30
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%11100%
ConfigureJsonTypeInfoUsingReflection(...)100%11100%

File(s)

C:\h\w\B31A098C\w\BB5A0A33\e\runtime-utils\Runner\runtime\src\libraries\System.Text.Json\src\System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.Reflection.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Diagnostics;
 5using System.Diagnostics.CodeAnalysis;
 6using System.Text.Json.Serialization.Metadata;
 7
 8namespace System.Text.Json.Serialization.Converters
 9{
 10    /// <summary>
 11    /// Implementation of <cref>JsonObjectConverter{T}</cref> that supports the deserialization
 12    /// of JSON objects using parameterized constructors.
 13    /// </summary>
 14    internal sealed class LargeObjectWithParameterizedConstructorConverterWithReflection<T>
 15        : LargeObjectWithParameterizedConstructorConverter<T> where T : notnull
 16    {
 17        [RequiresUnreferencedCode(JsonSerializer.SerializationUnreferencedCodeMessage)]
 18        [RequiresDynamicCode(JsonSerializer.SerializationRequiresDynamicCodeMessage)]
 74919        public LargeObjectWithParameterizedConstructorConverterWithReflection()
 74920        {
 74921        }
 22
 23        [RequiresUnreferencedCode(JsonSerializer.SerializationUnreferencedCodeMessage)]
 24        [RequiresDynamicCode(JsonSerializer.SerializationRequiresDynamicCodeMessage)]
 25        internal override void ConfigureJsonTypeInfoUsingReflection(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions opt
 74926        {
 74927            jsonTypeInfo.CreateObjectWithArgs = DefaultJsonTypeInfoResolver.MemberAccessor.CreateParameterizedConstructo
 74928        }
 29    }
 30}