2 overrides of BoundConstructor
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
764public override ModelMetadata BoundConstructor => throw new NotImplementedException();
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
376public override ModelMetadata? BoundConstructor
18 references to BoundConstructor
Microsoft.AspNetCore.Mvc.Abstractions (7)
ModelBinding\ModelMetadata.cs (7)
133if (BoundConstructor is null) 140var boundParameters = BoundConstructor.BoundConstructorParameters!; 167Debug.Assert(BoundConstructor != null, "This API can be only called for types with bound constructors."); 182Debug.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" />. 666var boundParameters = BoundConstructor!.BoundConstructorParameters!;
Microsoft.AspNetCore.Mvc.Core (10)
ModelBinding\Binders\ComplexObjectModelBinder.cs (4)
75var boundConstructor = modelMetadata.BoundConstructor; 545var performsConstructorBinding = bindingContext.Model == null && modelMetadata.BoundConstructor != null; 548(!performsConstructorBinding || modelMetadata.BoundConstructor!.BoundConstructorParameters!.Count == 0)) 613var parameters = bindingContext.ModelMetadata.BoundConstructor!.BoundConstructorParameters!;
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
43var boundConstructor = context.Metadata.BoundConstructor;
ModelBinding\ModelBindingHelper.cs (1)
234if (modelMetadata.BoundConstructor != null)
ModelBinding\Validation\ClientValidatorCache.cs (1)
28metadata.ContainerMetadata?.BoundConstructor != null &&
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (2)
55if (_modelMetadata.BoundConstructor == null) 62_parameters = _modelMetadata.BoundConstructor.BoundConstructorParameters!;
ModelBinding\Validation\ValidationVisitor.cs (1)
339if (metadata.BoundConstructor != null)
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Validation\ClientValidatorCacheTest.cs (1)
73var parameter = metadata.BoundConstructor.BoundConstructorParameters.First(f => f.Name == nameof(TestRecordType.Property1));