5 overrides of Name
Microsoft.Extensions.Validation.Tests (1)
System.Private.CoreLib (1)
System.Reflection.Context (1)
System.Reflection.Emit (1)
System.Reflection.MetadataLoadContext (1)
267 references to Name
dotnet-svcutil-lib (3)
GenerateDocumentationAndConfigFiles (1)
Metrics (1)
Metrics.Legacy (1)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Grpc.Swagger (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;
1446var parameterName = factoryContext.FirstFormRequestBodyParameter.Name;
1582var argumentExpression = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
1597Debug.Assert(parameterInfo.Name != null, "Parameter name must be set for parameters resolved from properties.");
1600factoryContext.EndpointBuilder.Metadata.Add(new ParameterBindingMetadata(parameterInfo.Name, parameterInfo, hasTryParse: hasTryParse, hasBindAsync: hasBindAsync, isOptional: parameterInfo.IsOptional));
1622Debug.Assert(parameterInfo.Name != null, "Parameter name must be set for parameters resolved from properties.");
1625factoryContext.EndpointBuilder.Metadata.Add(new ParameterBindingMetadata(parameterInfo.Name, parameterInfo, hasTryParse: hasTryParse, hasBindAsync: hasBindAsync, isOptional: parameterInfo.IsOptional));
1639factoryContext.TrackedParameters.Add(parameter.Name!, RequestDelegateFactoryConstants.PropertyAsParameter);
1680var argument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
1683var parameterNameConstant = Expression.Constant(parameter.Name);
1699throw 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}.");
1907var argument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
1910var parameterNameConstant = Expression.Constant(parameter.Name);
2049Expression.Constant(parameter.Name),
2100factoryContext.TrackedParameters.Add(parameter.Name!, RequestDelegateFactoryConstants.FormCollectionParameter);
2139var key = formAttribute == null || string.IsNullOrEmpty(formAttribute.Name) ? parameter.Name! : formAttribute.Name;
2158var formArgument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local");
2179var formReader = Expression.Variable(typeof(FormDataReader), $"{parameter.Name}_reader");
2217var parameterNameConstant = Expression.Constant(parameter.Name);
2283factoryContext.TrackedParameters.Add(parameter.Name!, RequestDelegateFactoryConstants.FormFileParameter);
2319var parameterName = parameter.Name;
2352Expression.Constant(parameter.Name),
2377Expression.Constant(parameter.Name),
Microsoft.AspNetCore.Http.Extensions.Tests (24)
Microsoft.AspNetCore.Http.Microbenchmarks (10)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (5)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.Core (11)
Microsoft.AspNetCore.Mvc.Core.Test (11)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
Microsoft.AspNetCore.Mvc.IntegrationTests (17)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OpenApi (6)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CSharp (1)
Microsoft.DotNet.Internal.DependencyInjection.Testing (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Microsoft.Extensions.AI.Abstractions (12)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Tests (3)
Microsoft.Extensions.Configuration.Binder (4)
Microsoft.Extensions.Validation (4)
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)
Microsoft.VisualStudio.LanguageServices (1)
PresentationBuildTasks (4)
PresentationFramework (4)
Roslyn.Diagnostics.Analyzers (1)
System.ComponentModel.Composition (4)
System.ComponentModel.Composition.Registration (1)
System.Composition.Convention (1)
System.Composition.TypedParts (1)
System.Linq.Expressions (3)
System.Private.CoreLib (13)
System.Reflection.Context (2)
System.ServiceModel.Primitives (2)
System.Text.Json (2)
System.Xaml (4)
Test.Utilities (1)
Text.Analyzers (1)