< Summary

Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 31
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%

File(s)

C:\h\w\B31A098C\w\BB5A0A33\e\runtime-utils\Runner\runtime\src\libraries\System.Text.Json\src\System\Text\Json\Serialization\ArgumentState.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.Collections.Generic;
 5using System.Text.Json.Serialization.Metadata;
 6
 7using FoundProperties = System.ValueTuple<System.Text.Json.Serialization.Metadata.JsonPropertyInfo, System.Text.Json.Jso
 8using FoundPropertiesAsync = System.ValueTuple<System.Text.Json.Serialization.Metadata.JsonPropertyInfo, object?, string
 9
 10namespace System.Text.Json
 11{
 12    /// <summary>
 13    /// Holds relevant state when deserializing objects with parameterized constructors.
 14    /// Lives on the current ReadStackFrame.
 15    /// </summary>
 16    internal sealed class ArgumentState
 17    {
 18        // Cache for parsed constructor arguments.
 23419        public object Arguments = null!;
 20
 21        // When deserializing objects with parameterized ctors, the properties we find on the first pass.
 22        public FoundProperties[]? FoundProperties;
 23
 24        // When deserializing objects with parameterized ctors asynchronously, the properties we find on the first pass.
 25        public FoundPropertiesAsync[]? FoundPropertiesAsync;
 26        public int FoundPropertyCount;
 27
 28        // Current constructor parameter value.
 29        public JsonParameterInfo? JsonParameterInfo;
 30    }
 31}

Methods/Properties

.ctor()