2 writes to ElementType
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelMetadata.cs (2)
768ElementType = ModelType.GetElementType()!; 788ElementType = enumerableType?.GenericTypeArguments[0] ?? typeof(object);
9 references to ElementType
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
791ElementType != null,
Microsoft.AspNetCore.Mvc.Abstractions.Test (4)
ModelBinding\ModelMetadataTest.cs (4)
215var elementType = metadata.ElementType; 236var elementType = metadata.ElementType; 419Assert.Throws<NotSupportedException>(() => metadata.ElementType); 436Assert.Null(metadata.ElementType);
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!,