< Summary

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

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonParameterInfoValues.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.ComponentModel;
 5
 6namespace System.Text.Json.Serialization.Metadata
 7{
 8    /// <summary>
 9    /// Provides information about a constructor parameter required for JSON deserialization.
 10    /// </summary>
 11    /// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called dir
 12    [EditorBrowsable(EditorBrowsableState.Never)]
 13    public sealed class JsonParameterInfoValues
 14    {
 15        /// <summary>
 16        /// The name of the parameter.
 17        /// </summary>
 18        /// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called
 019        public string Name { get; init; } = null!;
 20
 21        /// <summary>
 22        /// The type of the parameter.
 23        /// </summary>
 24        /// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called
 025        public Type ParameterType { get; init; } = null!;
 26
 27        /// <summary>
 28        /// The zero-based position of the parameter in the formal parameter list.
 29        /// </summary>
 30        /// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called
 031        public int Position { get; init; }
 32
 33        /// <summary>
 34        /// Whether a default value was specified for the parameter.
 35        /// </summary>
 36        /// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called
 037        public bool HasDefaultValue { get; init; }
 38
 39        /// <summary>
 40        /// The default value of the parameter.
 41        /// </summary>
 42        /// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called
 043        public object? DefaultValue { get; init; }
 44
 45        /// <summary>
 46        /// Whether the parameter allows <see langword="null"/> values.
 47        /// </summary>
 48        /// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called
 049        public bool IsNullable { get; init; }
 50
 51        /// <summary>
 52        /// Whether the parameter represents a required or init-only member initializer.
 53        /// </summary>
 54        /// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called
 055        public bool IsMemberInitializer { get; init; }
 56    }
 57}
 58