< Summary

Information
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 23
Line coverage: 0%
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%110%

File(s)

C:\h\w\B31A098C\w\BB5A0A33\e\runtime-utils\Runner\runtime\src\libraries\System.Text.Json\src\System\Text\Json\Serialization\Attributes\JsonIncludeAttribute.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
 4namespace System.Text.Json.Serialization
 5{
 6    /// <summary>
 7    /// Indicates that the property or field should be included for serialization and deserialization.
 8    /// </summary>
 9    /// <remarks>
 10    /// When applied to a public property, indicates that non-public getters and setters should be used for serializatio
 11    ///
 12    /// Non-public properties and fields are not allowed when serializing and deserializing. If the attribute is used on
 13    /// an <see cref="InvalidOperationException"/> is thrown during the first serialization or deserialization of the de
 14    /// </remarks>
 15    [AttributeUsage(AttributeTargets.Property | System.AttributeTargets.Field, AllowMultiple = false)]
 16    public sealed class JsonIncludeAttribute : JsonAttribute
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of <see cref="JsonIncludeAttribute"/>.
 20        /// </summary>
 021        public JsonIncludeAttribute() { }
 22    }
 23}

Methods/Properties

.ctor()