24 references to ModelType
Microsoft.AspNetCore.Mvc.TagHelpers (5)
InputTagHelper.cs (4)
302if (modelExplorer.ModelType == typeof(string)) 315else if (modelExplorer.ModelType != typeof(bool)) 320modelExplorer.ModelType.FullName, 538var fieldType = modelExplorer.ModelType;
SelectTagHelper.cs (1)
98var realModelType = For.ModelExplorer.ModelType;
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
ModelExplorer.cs (5)
139/// Retrieving the <see cref="ModelType"/> will execute the model accessor function if this 171/// for <see cref="ModelType"/>. 183var propertyHelpers = PropertyHelper.GetProperties(ModelType); 402if (Metadata.ModelType != ModelType) 404metadata = _metadataProvider.GetMetadataForType(ModelType);
TemplateBuilder.cs (1)
130var visitedObjectsKey = _model ?? _modelExplorer.ModelType;
TemplateRenderer.cs (1)
137Resources.FormatTemplateHelpers_NoTemplate(_viewData.ModelExplorer.ModelType.FullName));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
ExpressionMetadataProviderTest.cs (8)
31Assert.Equal(typeof(TestModel), explorer.ModelType); 49Assert.Equal(typeof(Category), explorer.ModelType); 67Assert.Equal(typeof(TestModel), explorer.ModelType); 89Assert.Equal(typeof(int), explorer.ModelType); 133Assert.Equal(expectedType, explorer.ModelType); 174Assert.Equal(typeof(string), explorer.ModelType); 196Assert.Equal(typeof(string), explorer.ModelType); 218Assert.Equal(typeof(string), explorer.ModelType);
ModelExplorerTest.cs (2)
18var modelType = modelExplorer.ModelType; 32var modelType = modelExplorer.ModelType;
ViewDataDictionaryOfTModelTest.cs (2)
195Assert.Equal(expectedType, viewData1.ModelExplorer.ModelType); 200Assert.Equal(expectedType, viewData2.ModelExplorer.ModelType);