102 references to ForType
Microsoft.AspNetCore.Grpc.Swagger (5)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (5)
83ModelMetadata = new GrpcModelMetadata(ModelMetadataIdentity.ForType(responseType)), 89ModelMetadata = new GrpcModelMetadata(ModelMetadataIdentity.ForType(typeof(Google.Rpc.Status))), 113: ModelMetadataIdentity.ForType(MessageDescriptorHelpers.ResolveFieldType(field)); 130: ModelMetadataIdentity.ForType(bodyDescriptor.Descriptor.ClrType); 155: ModelMetadataIdentity.ForType(MessageDescriptorHelpers.ResolveFieldType(field));
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
449: base(ModelMetadataIdentity.ForType(modelType))
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
437new(ModelMetadataIdentity.ForType(type));
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (3)
82var key = ModelMetadataIdentity.ForType(modelType); 161var key = ModelMetadataIdentity.ForType(modelType); 300var key = ModelMetadataIdentity.ForType(typeof(object));
Microsoft.AspNetCore.Mvc.Core.Test (62)
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1456: base(ModelMetadataIdentity.ForType(typeof(string)))
ModelBinding\Metadata\BindingSourceMetadataProviderTests.cs (1)
14var key = ModelMetadataIdentity.ForType(typeof(Test));
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (7)
22ModelMetadataIdentity.ForType(typeof(string)), 46ModelMetadataIdentity.ForType(typeof(string)), 69ModelMetadataIdentity.ForType(typeof(string)), 93ModelMetadataIdentity.ForType(typeof(string)), 116ModelMetadataIdentity.ForType(typeof(string)), 140ModelMetadataIdentity.ForType(typeof(string)), 611ModelMetadataIdentity.ForType(typeof(string)),
ModelBinding\Metadata\DefaultModelMetadataTest.cs (44)
23var key = ModelMetadataIdentity.ForType(typeof(string)); 83var key = ModelMetadataIdentity.ForType(typeof(Exception)); 236var key = ModelMetadataIdentity.ForType(modelType); 263var key = ModelMetadataIdentity.ForType(modelType); 297var key = ModelMetadataIdentity.ForType(modelType); 324var key = ModelMetadataIdentity.ForType(modelType); 357var key = ModelMetadataIdentity.ForType(modelType); 380var key = ModelMetadataIdentity.ForType(modelType); 401var key = ModelMetadataIdentity.ForType(modelType.MakeByRefType()); 423var key = ModelMetadataIdentity.ForType(modelType); 444var key = ModelMetadataIdentity.ForType(modelType); 486var key = ModelMetadataIdentity.ForType(typeof(string)); 558var key = ModelMetadataIdentity.ForType(typeof(string)); 670var key = ModelMetadataIdentity.ForType(typeof(string)); 690var key = ModelMetadataIdentity.ForType(typeof(string)); 711var key = ModelMetadataIdentity.ForType(typeof(string)); 732var key = ModelMetadataIdentity.ForType(typeof(int[])); 757var key = ModelMetadataIdentity.ForType(typeof(TypeWithProperties)); 776var key = ModelMetadataIdentity.ForType(typeof(TypeWithProperties)); 795var key = ModelMetadataIdentity.ForType(typeof(TypeWithProperties)); 819var key = ModelMetadataIdentity.ForType(modelType); 846var key = ModelMetadataIdentity.ForType(modelType); 878var key = ModelMetadataIdentity.ForType(typeof(int)); 903var key = ModelMetadataIdentity.ForType(typeof(int)); 928var key = ModelMetadataIdentity.ForType(typeof(XmlDocument)); 951var key = ModelMetadataIdentity.ForType(typeof(string)); 971var key = ModelMetadataIdentity.ForType(typeof(string)); 1027var modelIdentity = ModelMetadataIdentity.ForType(typeof(string)); 1041var modelIdentity = ModelMetadataIdentity.ForType(typeof(string)); 1055var modelIdentity = ModelMetadataIdentity.ForType(typeof(string)); 1070var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1095var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1122var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1146var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1173var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1214var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1257var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1286var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1333var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1377var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1422var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1467var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1512var modelIdentity = ModelMetadataIdentity.ForType(modelType); 1557var modelIdentity = ModelMetadataIdentity.ForType(modelType);
ModelBinding\Metadata\DefaultValidationMetadataProviderTest.cs (1)
54var key = ModelMetadataIdentity.ForType(typeof(ValidateNeverClass));
ModelBinding\Metadata\HasValidatorsValidationMetadataProviderTest.cs (5)
22var key = ModelMetadataIdentity.ForType(typeof(object)); 40var key = ModelMetadataIdentity.ForType(typeof(object)); 68var key = ModelMetadataIdentity.ForType(typeof(object)); 92var key = ModelMetadataIdentity.ForType(typeof(object)); 115var key = ModelMetadataIdentity.ForType(typeof(object));
ModelBinding\Metadata\SystemTextJsonValidationMetadataProviderTest.cs (1)
52var key = ModelMetadataIdentity.ForType(typeof(SampleTestClass));
ModelBinding\ParameterBinderTest.cs (1)
845: base(ModelMetadataIdentity.ForType(typeof(string)))
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (1)
171var key = ModelMetadataIdentity.ForType(typeof(PersonRecord));
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
TestModelMetadataProvider.cs (1)
106var key = ModelMetadataIdentity.ForType(type);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (26)
DataAnnotationsMetadataProviderTest.cs (25)
93var key = ModelMetadataIdentity.ForType(typeof(string)); 114var key = ModelMetadataIdentity.ForType(typeof(string)); 137var key = ModelMetadataIdentity.ForType(typeof(string)); 156var key = ModelMetadataIdentity.ForType(typeof(string)); 175var key = ModelMetadataIdentity.ForType(typeof(string)); 198var key = ModelMetadataIdentity.ForType(typeof(string)); 221var key = ModelMetadataIdentity.ForType(typeof(string)); 244var key = ModelMetadataIdentity.ForType(typeof(string)); 279var key = ModelMetadataIdentity.ForType(typeof(TestEnum)); 317var key = ModelMetadataIdentity.ForType(typeof(string)); 354var key = ModelMetadataIdentity.ForType(typeof(string)); 384var key = ModelMetadataIdentity.ForType(typeof(string)); 419var key = ModelMetadataIdentity.ForType(typeof(string)); 454var key = ModelMetadataIdentity.ForType(typeof(string)); 483var key = ModelMetadataIdentity.ForType(typeof(string)); 518var key = ModelMetadataIdentity.ForType(typeof(string)); 547var key = ModelMetadataIdentity.ForType(typeof(string)); 592var key = ModelMetadataIdentity.ForType(typeof(DataAnnotationsMetadataProviderTest)); 636var key = ModelMetadataIdentity.ForType(type); 670var key = ModelMetadataIdentity.ForType(type); 802var key = ModelMetadataIdentity.ForType(type); 831var key = ModelMetadataIdentity.ForType(type); 980var key = ModelMetadataIdentity.ForType(type); 1008var key = ModelMetadataIdentity.ForType(typeof(EnumWithDisplayOrder)); 1686var key = ModelMetadataIdentity.ForType(typeof(EnumWithLocalizedDisplayNames));
DataMemberRequiredBindingMetadataProviderTest.cs (1)
77var key = ModelMetadataIdentity.ForType(typeof(ClassWithDataMemberIsRequiredTrue));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
FormatWeekHelperTest.cs (1)
24var key = ModelMetadataIdentity.ForType(typeof(DateTime));
Rendering\HtmlHelperNameExtensionsTest.cs (2)
165ModelMetadataIdentity.ForType(typeof(DefaultTemplatesUtilities.ObjectTemplateModel))); 194ModelMetadataIdentity.ForType(typeof(DefaultTemplatesUtilities.ObjectTemplateModel)));