| | | 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 | | |
| | | 4 | | using System.ComponentModel; |
| | | 5 | | |
| | | 6 | | namespace 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 |
| | 17976 | 19 | | 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 |
| | 22470 | 25 | | 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 |
| | 8988 | 31 | | 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 |
| | 17976 | 37 | | 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 |
| | 4494 | 43 | | 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 |
| | 8988 | 49 | | 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 |
| | 4494 | 55 | | public bool IsMemberInitializer { get; init; } |
| | | 56 | | } |
| | | 57 | | } |