-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
JsonParameterInfoValues.cs
45 lines (39 loc) · 2.02 KB
/
JsonParameterInfoValues.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
namespace System.Text.Json.Serialization.Metadata
{
/// <summary>
/// Provides information about a constructor parameter required for JSON deserialization.
/// </summary>
/// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class JsonParameterInfoValues
{
/// <summary>
/// The name of the parameter.
/// </summary>
/// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
public string Name { get; init; } = null!;
/// <summary>
/// The type of the parameter.
/// </summary>
/// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
public Type ParameterType { get; init; } = null!;
/// <summary>
/// The zero-based position of the parameter in the formal parameter list.
/// </summary>
/// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
public int Position { get; init; }
/// <summary>
/// Whether a default value was specified for the parameter.
/// </summary>
/// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
public bool HasDefaultValue { get; init; }
/// <summary>
/// The default value of the parameter.
/// </summary>
/// <remarks>This API is for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
public object? DefaultValue { get; init; }
}
}