2 writes to ElementType
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelMetadata.cs (2)
768ElementType = ModelType.GetElementType()!; 788ElementType = enumerableType?.GenericTypeArguments[0] ?? typeof(object);
5 references to ElementType
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
791ElementType != null,
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\CollectionModelBinder.cs (1)
394bindingContext.ModelMetadata.ElementType));
ModelBinding\Metadata\DefaultModelMetadata.cs (2)
220if (_elementMetadata == null && ElementType != null) 222_elementMetadata = _provider.GetMetadataForType(ElementType);
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
68key: metadata.ElementType!,