File: Abstractions\ParameterDescriptor.cs
Web Access
Project: src\src\Mvc\Mvc.Abstractions\src\Microsoft.AspNetCore.Mvc.Abstractions.csproj (Microsoft.AspNetCore.Mvc.Abstractions)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.AspNetCore.Mvc.ModelBinding;
 
namespace Microsoft.AspNetCore.Mvc.Abstractions;
 
/// <summary>
/// Describes a parameter in an action.
/// </summary>
public class ParameterDescriptor
{
    /// <summary>
    /// Gets or sets the parameter name.
    /// </summary>
    public string Name { get; set; } = default!;
 
    /// <summary>
    /// Gets or sets the type of the parameter.
    /// </summary>
    public Type ParameterType { get; set; } = default!;
 
    /// <summary>
    /// Gets or sets the <see cref="ModelBinding.BindingInfo"/> for the parameter.
    /// </summary>
    public BindingInfo? BindingInfo { get; set; }
}