2 writes to ElementType
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelMetadata.cs (2)
768
ElementType
= ModelType.GetElementType()!;
788
ElementType
= enumerableType?.GenericTypeArguments[0] ?? typeof(object);
9 references to ElementType
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
791
ElementType
!= null,
Microsoft.AspNetCore.Mvc.Abstractions.Test (4)
ModelBinding\ModelMetadataTest.cs (4)
215
var elementType = metadata.
ElementType
;
236
var elementType = metadata.
ElementType
;
419
Assert.Throws<NotSupportedException>(() => metadata.
ElementType
);
436
Assert.Null(metadata.
ElementType
);
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\CollectionModelBinder.cs (1)
394
bindingContext.ModelMetadata.
ElementType
));
ModelBinding\Metadata\DefaultModelMetadata.cs (2)
220
if (_elementMetadata == null &&
ElementType
!= null)
222
_elementMetadata = _provider.GetMetadataForType(
ElementType
);
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
68
key: metadata.
ElementType
!,