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