< Summary

Information
Class: System.Text.Json.Serialization.Metadata.JsonParameterInfoValues
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\Metadata\JsonParameterInfoValues.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 57
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

File(s)

C:\h\w\B31A098C\w\BB5A0A33\e\runtime-utils\Runner\runtime\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
 1797619        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
 2247025        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
 898831        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
 1797637        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
 449443        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
 898849        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
 449455        public bool IsMemberInitializer { get; init; }
 56    }
 57}