1 override of BoundConstructor
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
376
public override ModelMetadata?
BoundConstructor
17 references to BoundConstructor
Microsoft.AspNetCore.Mvc.Abstractions (7)
ModelBinding\ModelMetadata.cs (7)
133
if (
BoundConstructor
is null)
140
var boundParameters =
BoundConstructor
.BoundConstructorParameters!;
167
Debug.Assert(
BoundConstructor
!= null, "This API can be only called for types with bound constructors.");
182
Debug.Assert(
BoundConstructor
!= null, "This API can be only called for types with bound constructors.");
195
/// Gets the collection of <see cref="ModelMetadata"/> instances for parameters on a <see cref="
BoundConstructor
"/>.
609
/// Gets a delegate that invokes the bound constructor <see cref="
BoundConstructor
" /> if non-<see langword="null" />.
666
var boundParameters =
BoundConstructor
!.BoundConstructorParameters!;
Microsoft.AspNetCore.Mvc.Core (10)
ModelBinding\Binders\ComplexObjectModelBinder.cs (4)
75
var boundConstructor = modelMetadata.
BoundConstructor
;
545
var performsConstructorBinding = bindingContext.Model == null && modelMetadata.
BoundConstructor
!= null;
548
(!performsConstructorBinding || modelMetadata.
BoundConstructor
!.BoundConstructorParameters!.Count == 0))
613
var parameters = bindingContext.ModelMetadata.
BoundConstructor
!.BoundConstructorParameters!;
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
43
var boundConstructor = context.Metadata.
BoundConstructor
;
ModelBinding\ModelBindingHelper.cs (1)
234
if (modelMetadata.
BoundConstructor
!= null)
ModelBinding\Validation\ClientValidatorCache.cs (1)
28
metadata.ContainerMetadata?.
BoundConstructor
!= null &&
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (2)
55
if (_modelMetadata.
BoundConstructor
== null)
62
_parameters = _modelMetadata.
BoundConstructor
.BoundConstructorParameters!;
ModelBinding\Validation\ValidationVisitor.cs (1)
334
if (metadata.
BoundConstructor
!= null)