31 references to TypeNameHelper
Microsoft.AspNetCore.Mvc.Abstractions (14)
src\Shared\ParameterBindingMethodCache.cs (14)
193stringBuilder.AppendLine(CultureInfo.InvariantCulture, $"TryParse method found on {TypeNameHelper.GetTypeDisplayName(type, fullName: false)} with incorrect format. Must be a static method with format"); 194stringBuilder.AppendLine(CultureInfo.InvariantCulture, $"bool TryParse(string, IFormatProvider, out {TypeNameHelper.GetTypeDisplayName(type, fullName: false)})"); 195stringBuilder.AppendLine(CultureInfo.InvariantCulture, $"bool TryParse(string, out {TypeNameHelper.GetTypeDisplayName(type, fullName: false)})"); 287stringBuilder.AppendLine(CultureInfo.InvariantCulture, $"BindAsync method found on {TypeNameHelper.GetTypeDisplayName(nonNullableParameterType, fullName: false)} with incorrect format. Must be a static method with format"); 288stringBuilder.AppendLine(CultureInfo.InvariantCulture, $"ValueTask<{TypeNameHelper.GetTypeDisplayName(nonNullableParameterType, fullName: false)}> BindAsync(HttpContext context, ParameterInfo parameter)"); 289stringBuilder.AppendLine(CultureInfo.InvariantCulture, $"ValueTask<{TypeNameHelper.GetTypeDisplayName(nonNullableParameterType, fullName: false)}> BindAsync(HttpContext context)"); 290stringBuilder.AppendLine(CultureInfo.InvariantCulture, $"ValueTask<{TypeNameHelper.GetTypeDisplayName(nonNullableParameterType, fullName: false)}?> BindAsync(HttpContext context, ParameterInfo parameter)"); 291stringBuilder.AppendLine(CultureInfo.InvariantCulture, $"ValueTask<{TypeNameHelper.GetTypeDisplayName(nonNullableParameterType, fullName: false)}?> BindAsync(HttpContext context)"); 347$"The public parameterized constructor must contain only parameters that match the declared public properties for type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}'."); 363throw new InvalidOperationException($"The abstract type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}' is not supported."); 403throw new InvalidOperationException($"Only a single public parameterized constructor is allowed for type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}'."); 406throw new InvalidOperationException($"No public parameterless constructor found for type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}'."); 435var typeName = TypeNameHelper.GetTypeDisplayName(type, fullName: true, nestedTypeDelimiter: '.'); 466throw new InvalidOperationException($"{TypeNameHelper.GetTypeDisplayName(type, fullName: false)} implements multiple interfaces defining a static {interfaceMethod} method causing ambiguity.");
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
src\Shared\PropertyAsParameterInfo.cs (1)
103throw new InvalidOperationException($"The nullable type '{TypeNameHelper.GetTypeDisplayName(parameters[i].ParameterType, fullName: false)}' is not supported.");
Microsoft.AspNetCore.Mvc.Core (9)
ApiConventionTypeAttribute.cs (1)
72var methodDisplayName = TypeNameHelper.GetTypeDisplayName(method.DeclaringType!) + "." + method.Name;
ApplicationModels\ActionModel.cs (1)
174var controllerType = TypeNameHelper.GetTypeDisplayName(Controller.ControllerType);
ApplicationModels\ApplicationModelFactory.cs (1)
330var formattedMethodInfo = $"{TypeNameHelper.GetTypeDisplayName(type)}.{method.Name} ({type.Assembly.GetName().Name})";
ApplicationModels\ControllerModel.cs (1)
154var controllerType = TypeNameHelper.GetTypeDisplayName(ControllerType);
ApplicationModels\ParameterModel.cs (1)
80var parameterTypeName = TypeNameHelper.GetTypeDisplayName(ParameterInfo.ParameterType, fullName: false);
Controllers\ControllerActionDescriptor.cs (1)
55TypeNameHelper.GetTypeDisplayName(ControllerTypeInfo),
Infrastructure\ControllerActionInvoker.cs (2)
595var controllerName = TypeNameHelper.GetTypeDisplayName(controllerType); 610var controllerName = TypeNameHelper.GetTypeDisplayName(controllerType);
Infrastructure\ResourceInvoker.Log.cs (1)
51var controllerName = TypeNameHelper.GetTypeDisplayName(controllerType);
Microsoft.AspNetCore.Mvc.RazorPages (5)
PageLoggerExtensions.cs (5)
30var pageName = TypeNameHelper.GetTypeDisplayName(pageType); 45var pageName = TypeNameHelper.GetTypeDisplayName(pageType); 60var pageName = TypeNameHelper.GetTypeDisplayName(pageType); 75var pageName = TypeNameHelper.GetTypeDisplayName(pageType); 89var declaringTypeName = TypeNameHelper.GetTypeDisplayName(handler.MethodInfo.DeclaringType);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\SaveTempDataPropertyFilterBase.cs (2)
137TypeNameHelper.GetTypeDisplayName(property.DeclaringType), 139TypeNameHelper.GetTypeDisplayName(property.PropertyType));