4 overrides of Name
System.Private.CoreLib (1)
System.Reflection.Context (1)
System.Reflection.Emit (1)
System.Reflection.MetadataLoadContext (1)
192 references to Name
Aspire.Hosting.RemoteHost (14)
dotnet-svcutil-lib (3)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Http.Extensions (55)
RequestDelegateFactory.cs (50)
668name: parameters[i].Name!,
705if (parameter.Name is null)
723throw new NotSupportedException($"The by reference parameter '{attribute} {TypeNameHelper.GetTypeDisplayName(parameter.ParameterType, fullName: false)} {parameter.Name}' is not supported.");
730var routeName = routeAttribute.Name ?? parameter.Name;
731factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.RouteAttribute);
741factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.QueryAttribute);
742return BindParameterFromProperty(parameter, QueryExpr, QueryIndexerProperty, queryAttribute.Name ?? parameter.Name, factoryContext, "query string");
746factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.HeaderAttribute);
747return BindParameterFromProperty(parameter, HeadersExpr, HeaderIndexerProperty, headerAttribute.Name ?? parameter.Name, factoryContext, "header");
751factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.BodyAttribute);
778return BindParameterFromFormFile(parameter, formAttribute.Name ?? parameter.Name, factoryContext, RequestDelegateFactoryConstants.FormFileAttribute);
802? BindParameterFromFormItem(parameter, formAttribute.Name ?? parameter.Name, factoryContext)
803: BindComplexParameterFromFormItem(parameter, string.IsNullOrEmpty(formAttribute.Name) ? parameter.Name : formAttribute.Name, factoryContext);
812factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.ServiceAttribute);
865return BindParameterFromFormFile(parameter, parameter.Name, factoryContext, RequestDelegateFactoryConstants.FormFileParameter);
889if (routeParams.Contains(parameter.Name, StringComparer.OrdinalIgnoreCase))
893factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.RouteParameter);
894return BindParameterFromProperty(parameter, RouteValuesExpr, RouteValuesIndexerProperty, parameter.Name, factoryContext, "route");
898factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.QueryStringParameter);
899return BindParameterFromProperty(parameter, QueryExpr, QueryIndexerProperty, parameter.Name, factoryContext, "query string");
903factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.RouteOrQueryStringParameter);
904return BindParameterFromRouteValueOrQueryString(parameter, parameter.Name, factoryContext);
914factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.QueryStringParameter);
915return BindParameterFromProperty(parameter, QueryExpr, QueryIndexerProperty, parameter.Name, factoryContext, "query string");
923factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.ServiceParameter);
929factoryContext.TrackedParameters.Add(parameter.Name, RequestDelegateFactoryConstants.BodyParameter);
1311var parameterName = factoryContext.JsonRequestBodyParameter.Name;
1468var parameterName = factoryContext.FirstFormRequestBodyParameter.Name;
1604var argumentExpression = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
1619Debug.Assert(parameterInfo.Name != null, "Parameter name must be set for parameters resolved from properties.");
1622factoryContext.EndpointBuilder.Metadata.Add(new ParameterBindingMetadata(parameterInfo.Name, parameterInfo, hasTryParse: hasTryParse, hasBindAsync: hasBindAsync, isOptional: parameterInfo.IsOptional));
1644Debug.Assert(parameterInfo.Name != null, "Parameter name must be set for parameters resolved from properties.");
1647factoryContext.EndpointBuilder.Metadata.Add(new ParameterBindingMetadata(parameterInfo.Name, parameterInfo, hasTryParse: hasTryParse, hasBindAsync: hasBindAsync, isOptional: parameterInfo.IsOptional));
1661factoryContext.TrackedParameters.Add(parameter.Name!, RequestDelegateFactoryConstants.PropertyAsParameter);
1702var argument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
1705var parameterNameConstant = Expression.Constant(parameter.Name);
1721throw new InvalidOperationException($"{parameter.Name} must have a valid TryParse method to support converting from a string. No public static bool {typeName}.TryParse(string, out {typeName}) method found for {parameter.Name}.");
1929var argument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
1932var parameterNameConstant = Expression.Constant(parameter.Name);
2080Expression.Constant(parameter.Name),
2131factoryContext.TrackedParameters.Add(parameter.Name!, RequestDelegateFactoryConstants.FormCollectionParameter);
2170var key = formAttribute == null || string.IsNullOrEmpty(formAttribute.Name) ? parameter.Name! : formAttribute.Name;
2189var formArgument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
2210var formReader = Expression.Variable(typeof(FormDataReader), $"{parameter.Name}_reader");
2252var parameterNameConstant = Expression.Constant(parameter.Name);
2320factoryContext.TrackedParameters.Add(parameter.Name!, RequestDelegateFactoryConstants.FormFileParameter);
2356var parameterName = parameter.Name;
2389Expression.Constant(parameter.Name),
2414Expression.Constant(parameter.Name),
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (5)
Microsoft.AspNetCore.Mvc.Core (11)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OpenApi (6)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.CSharp (1)
Microsoft.DotNet.Internal.DependencyInjection.Testing (2)
Microsoft.Extensions.AI.Abstractions (9)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.Tests (4)
Microsoft.Extensions.Configuration.Binder (4)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.VisualBasic.Core (11)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (7)
1263ReportError(errors, SR.OmittedArgument1, parameter.Name)
1278parameter.Name,
1294parameter.Name,
1328ReportError(errors, SR.TypeInferenceFails1, parameter.Name)
1386If Operators.CompareString(name, parameters(paramIndex).Name, True) = 0 Then
1549parameters(paramIndex).Name,
1651ReportError(errors, SR.OmittedArgument1, parameters(index).Name)
PresentationBuildTasks (4)
PresentationFramework (4)
System.ComponentModel.Composition (4)
System.ComponentModel.Composition.Registration (1)
System.Composition.Convention (1)
System.Composition.TypedParts (1)
System.Linq.Expressions (3)
System.Private.CoreLib (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (1)
106string? name = Name;
System.Reflection.Context (2)
System.ServiceModel.Primitives (2)
System.Speech (4)
System.Text.Json (2)
System.Xaml (4)