189 instantiations of BindingInfo
ApplicationModelWebSite (1)
Controllers\ParameterModelController.cs (1)
25model.BindingInfo = model.BindingInfo ?? new BindingInfo();
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\BindingInfo.cs (2)
112var bindingInfo = new BindingInfo(); 211bindingInfo = new BindingInfo();
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
DefaultApiDescriptionProviderTest.cs (3)
257action.Parameters[0].BindingInfo = new BindingInfo() 286action.Parameters[0].BindingInfo = new BindingInfo() 2053BindingInfo = new BindingInfo
Microsoft.AspNetCore.Mvc.Core (9)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
230bindingInfo = new BindingInfo
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
87parameter.BindingInfo ??= new BindingInfo();
ApplicationModels\ParameterModelBase.cs (1)
41BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo);
ApplicationModels\PropertyModel.cs (1)
39BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo);
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
41var nestedBindingInfo = new BindingInfo(bindingInfo)
ModelBinding\ModelBinderFactory.cs (3)
213bindingInfo = new BindingInfo(factoryContext.BindingInfo); 217bindingInfo = new BindingInfo(); 252var bindingInfo = new BindingInfo();
ModelBinding\ModelBindingHelper.cs (1)
254BindingInfo = new BindingInfo()
Microsoft.AspNetCore.Mvc.Core.Test (35)
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (1)
36action.Parameters[0].BindingInfo = new BindingInfo
ApplicationModels\ParameterModelTest.cs (1)
19parameter.BindingInfo = new BindingInfo()
Controllers\ControllerBinderDelegateProviderTest.cs (17)
38BindingInfo = new BindingInfo(), 149BindingInfo = new BindingInfo(), 191BindingInfo = new BindingInfo(), 233BindingInfo = new BindingInfo(), 432BindingInfo = new BindingInfo(), 623BindingInfo = new BindingInfo(), 662BindingInfo = new BindingInfo(), 702BindingInfo = new BindingInfo() { BindingSource = BindingSource.Custom }, 743BindingInfo = new BindingInfo() { BindingSource = BindingSource.Custom }, 784BindingInfo = new BindingInfo() 797BindingInfo = new BindingInfo() 847BindingInfo = new BindingInfo() 860BindingInfo = new BindingInfo() 956BindingInfo = new BindingInfo(), 1014BindingInfo = new BindingInfo(), 1093BindingInfo = new BindingInfo() 1105BindingInfo = new BindingInfo()
Infrastructure\ControllerActionInvokerTest.cs (1)
1397BindingInfo = new BindingInfo(),
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
1096BindingInfo = new BindingInfo()
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1260BindingInfo = new BindingInfo()
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
379BindingInfo = new BindingInfo()
ModelBinding\DefaultModelBindingContextTest.cs (3)
76new BindingInfo() { BindingSource = BindingSource.Query }, 99new BindingInfo(), 128new BindingInfo() { BindingSource = BindingSource.Query },
ModelBinding\ModelBinderFactoryTest.cs (3)
286var emptyBindingInfo = new BindingInfo(); 287var halfBindingInfo = new BindingInfo 292var fullBindingInfo = new BindingInfo
ModelBinding\ParameterBinderTest.cs (4)
32var emptyBindingInfo = new BindingInfo(); 33var bindingInfoWithName = new BindingInfo 128var bindingInfo = new BindingInfo 656BindingInfo = new BindingInfo
ModelBinding\TestModelBinderProviderContext.cs (2)
31_bindingInfo = bindingInfo ?? new BindingInfo 46_bindingInfo = new BindingInfo
Microsoft.AspNetCore.Mvc.IntegrationTests (130)
ActionParametersIntegrationTest.cs (4)
218BindingInfo = new BindingInfo() 263BindingInfo = new BindingInfo 309BindingInfo = new BindingInfo() 354BindingInfo = new BindingInfo()
ArrayModelBinderIntegrationTest.cs (2)
61BindingInfo = new BindingInfo() 221BindingInfo = new BindingInfo()
BinderTypeBasedModelBinderIntegrationTest.cs (6)
22BindingInfo = new BindingInfo() 56BindingInfo = new BindingInfo() 93BindingInfo = new BindingInfo() 140new BindingInfo(), 249BindingInfo = new BindingInfo(), 285BindingInfo = new BindingInfo()
BindingSourceMetadataProviderIntegrationTest.cs (2)
30BindingInfo = new BindingInfo(), 84BindingInfo = new BindingInfo(),
BodyValidationIntegrationTests.cs (17)
27BindingInfo = new BindingInfo() 69BindingInfo = new BindingInfo 101BindingInfo = new BindingInfo() 151BindingInfo = new BindingInfo() 192BindingInfo = new BindingInfo() 232BindingInfo = new BindingInfo() 268BindingInfo = new BindingInfo() 313BindingInfo = new BindingInfo() 361BindingInfo = new BindingInfo() 402BindingInfo = new BindingInfo 460BindingInfo = new BindingInfo 517BindingInfo = new BindingInfo 566BindingInfo = new BindingInfo 610BindingInfo = new BindingInfo 655BindingInfo = new BindingInfo 706BindingInfo = new BindingInfo 765BindingInfo = new BindingInfo
ByteArrayModelBinderIntegrationTest.cs (3)
27BindingInfo = new BindingInfo(), 77BindingInfo = new BindingInfo() 110BindingInfo = new BindingInfo
CancellationTokenModelBinderIntegrationTest.cs (3)
24BindingInfo = new BindingInfo() 64BindingInfo = new BindingInfo(), 99BindingInfo = new BindingInfo()
CollectionModelBinderIntegrationTest.cs (3)
71BindingInfo = new BindingInfo() 219BindingInfo = new BindingInfo() 349BindingInfo = new BindingInfo()
ComplexRecordIntegrationTest.cs (3)
2174BindingInfo = new BindingInfo() 2282BindingInfo = new BindingInfo() 2430BindingInfo = new BindingInfo()
ComplexTypeIntegrationTestBase.cs (3)
2336BindingInfo = new BindingInfo() 2448BindingInfo = new BindingInfo() 2600BindingInfo = new BindingInfo()
DictionaryModelBinderIntegrationTest.cs (3)
152BindingInfo = new BindingInfo() 704BindingInfo = new BindingInfo() 748BindingInfo = new BindingInfo()
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
31BindingInfo = new BindingInfo(), 99BindingInfo = new BindingInfo(),
FormCollectionModelBindingIntegrationTest.cs (3)
34BindingInfo = new BindingInfo(), 81BindingInfo = new BindingInfo 126BindingInfo = new BindingInfo
FormFileModelBindingIntegrationTest.cs (22)
34BindingInfo = new BindingInfo(), 82BindingInfo = new BindingInfo(), 133BindingInfo = new BindingInfo(), 191BindingInfo = new BindingInfo(), 278BindingInfo = new BindingInfo(), 343BindingInfo = new BindingInfo(), 409BindingInfo = new BindingInfo(), 479BindingInfo = new BindingInfo(), 525BindingInfo = new BindingInfo(), 568BindingInfo = new BindingInfo(), 614BindingInfo = new BindingInfo 663BindingInfo = new BindingInfo() 703BindingInfo = new BindingInfo(), 762BindingInfo = new BindingInfo(), 828BindingInfo = new BindingInfo(), 889BindingInfo = new BindingInfo(), 928BindingInfo = new BindingInfo(), 990BindingInfo = new BindingInfo(), 1044BindingInfo = new BindingInfo(), 1095BindingInfo = new BindingInfo(), 1140BindingInfo = new BindingInfo(), 1199BindingInfo = new BindingInfo(),
HeaderModelBinderIntegrationTest.cs (7)
34BindingInfo = new BindingInfo() 73BindingInfo = new BindingInfo() 118BindingInfo = new BindingInfo(), 164BindingInfo = new BindingInfo(), 211BindingInfo = new BindingInfo(), 267BindingInfo = new BindingInfo 312BindingInfo = new BindingInfo()
KeyValuePairModelBinderIntegrationTest.cs (2)
235BindingInfo = new BindingInfo() 398BindingInfo = new BindingInfo()
ModelPrefixSelectionIntegrationTest.cs (3)
75BindingInfo = new BindingInfo() 163BindingInfo = new BindingInfo() 212BindingInfo = new BindingInfo()
NullableReferenceTypeIntegrationTest.cs (4)
28BindingInfo = new BindingInfo(), 76BindingInfo = new BindingInfo(), 115BindingInfo = new BindingInfo(), 162BindingInfo = new BindingInfo(),
ServicesModelBinderIntegrationTest.cs (9)
21BindingInfo = new BindingInfo() 59BindingInfo = new BindingInfo 95BindingInfo = new BindingInfo 131BindingInfo = new BindingInfo 167BindingInfo = new BindingInfo 204BindingInfo = new BindingInfo 237BindingInfo = new BindingInfo 273BindingInfo = new BindingInfo 306BindingInfo = new BindingInfo
SimpleTypeModelBinderIntegrationTest.cs (17)
26BindingInfo = new BindingInfo() 74BindingInfo = new BindingInfo(), 118BindingInfo = new BindingInfo(), 162BindingInfo = new BindingInfo(), 196BindingInfo = new BindingInfo(), 241BindingInfo = new BindingInfo(), 286BindingInfo = new BindingInfo 324BindingInfo = new BindingInfo(), 368BindingInfo = new BindingInfo(), 436BindingInfo = new BindingInfo(), 479BindingInfo = new BindingInfo(), 539BindingInfo = new BindingInfo(), 576BindingInfo = new BindingInfo(), 614BindingInfo = new BindingInfo(), 668BindingInfo = new BindingInfo(), 713BindingInfo = new BindingInfo(), 757BindingInfo = new BindingInfo(),
ValidationIntegrationTests.cs (6)
55BindingInfo = new BindingInfo() 67BindingInfo = new BindingInfo() 1780BindingInfo = new BindingInfo 1871BindingInfo = new BindingInfo 1917BindingInfo = new BindingInfo 1972BindingInfo = new BindingInfo
ValidationWithRecordIntegrationTests.cs (6)
47BindingInfo = new BindingInfo() 59BindingInfo = new BindingInfo() 1583BindingInfo = new BindingInfo 1674BindingInfo = new BindingInfo 1720BindingInfo = new BindingInfo 1771BindingInfo = new BindingInfo
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (1)
124bindingInfo = new BindingInfo
ApplicationModels\PagePropertyModel.cs (1)
39BindingInfo = other.BindingInfo == null ? null : new BindingInfo(other.BindingInfo);
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
76BindingInfo = new BindingInfo(), 127BindingInfo = new BindingInfo(), 262BindingInfo = new BindingInfo(), 318BindingInfo = new BindingInfo(), 360BindingInfo = new BindingInfo(),
Infrastructure\PageBinderFactoryTest.cs (2)
363BindingInfo = new BindingInfo() 423BindingInfo = new BindingInfo()
150 references to BindingInfo
Microsoft.AspNetCore.Mvc.Abstractions (21)
Abstractions\ParameterDescriptor.cs (2)
24/// Gets or sets the <see cref="ModelBinding.BindingInfo"/> for the parameter. 26public BindingInfo? BindingInfo { get; set; }
ApiExplorer\ApiParameterDescription.cs (1)
37public BindingInfo? BindingInfo { get; set; }
ModelBinding\BindingInfo.cs (16)
19/// Creates a new <see cref="BindingInfo"/>. 26/// Creates a copy of a <see cref="BindingInfo"/>. 28/// <param name="other">The <see cref="BindingInfo"/> to copy.</param> 29public BindingInfo(BindingInfo other) 100/// Constructs a new instance of <see cref="BindingInfo"/> from the given <paramref name="attributes"/>. 102/// This overload does not account for <see cref="BindingInfo"/> specified via <see cref="ModelMetadata"/>. Consider using 104/// on the result of this method to get a more accurate <see cref="BindingInfo"/> instance. 107/// <param name="attributes">A collection of attributes which are used to construct <see cref="BindingInfo"/> 109/// <returns>A new instance of <see cref="BindingInfo"/>.</returns> 110public static BindingInfo? GetBindingInfo(IEnumerable<object> attributes) 112var bindingInfo = new BindingInfo(); 196/// Constructs a new instance of <see cref="BindingInfo"/> from the given <paramref name="attributes"/> and <paramref name="modelMetadata"/>. 198/// <param name="attributes">A collection of attributes which are used to construct <see cref="BindingInfo"/>.</param> 200/// <returns>A new instance of <see cref="BindingInfo"/> if any binding metadata was discovered; otherwise or <see langword="null"/>.</returns> 201public static BindingInfo? GetBindingInfo(IEnumerable<object> attributes, ModelMetadata modelMetadata) 206var bindingInfo = GetBindingInfo(attributes);
ModelBinding\ModelBinderProviderContext.cs (2)
26public virtual IModelBinder CreateBinder(ModelMetadata metadata, BindingInfo bindingInfo) 34public abstract BindingInfo BindingInfo { get; }
Microsoft.AspNetCore.Mvc.Abstractions.Test (29)
ModelBinding\BindingInfoTest.cs (29)
22var bindingInfo = BindingInfo.GetBindingInfo(attributes); 41var bindingInfo = BindingInfo.GetBindingInfo(attributes); 58var bindingInfo = BindingInfo.GetBindingInfo(attributes); 75var bindingInfo = BindingInfo.GetBindingInfo(attributes); 90var bindingInfo = BindingInfo.GetBindingInfo(attributes); 115var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 136var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 164var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 187var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 213var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 240var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 262var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 284var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 305var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 327Assert.Throws<NotSupportedException>(() => BindingInfo.GetBindingInfo(attributes, modelMetadata));
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
DefaultApiDescriptionProvider.cs (4)
522public BindingInfo? BindingInfo { get; } 526BindingInfo? bindingInfo, 633var bindingInfo = BindingInfo.GetBindingInfo(Enumerable.Empty<object>(), propertyMetadata);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
DefaultApiDescriptionProviderTest.cs (3)
2311var bindingInfo = BindingInfo.GetBindingInfo(property.GetCustomAttributes().OfType<object>()); 2337BindingInfo = BindingInfo.GetBindingInfo(parameter.GetCustomAttributes().OfType<object>()),
Microsoft.AspNetCore.Mvc.Core (22)
ApplicationModels\DefaultApplicationModelProvider.cs (5)
220var bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 440BindingInfo? bindingInfo; 444bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 449bindingInfo = BindingInfo.GetBindingInfo(attributes);
ApplicationModels\IBindingModel.cs (1)
16BindingInfo? BindingInfo { get; set; }
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
14/// An <see cref="IActionModelConvention"/> that infers <see cref="BindingInfo.BindingSource"/> for parameters. 19/// <item>A previously specified <see cref="BindingInfo.BindingSource" /> is never overwritten.</item>
ApplicationModels\ParameterModelBase.cs (1)
69public BindingInfo? BindingInfo { get; set; }
ModelBinding\Binders\BinderTypeModelBinder.cs (1)
13/// <see cref="BindingInfo.BinderType"/>.
ModelBinding\Binders\BinderTypeModelBinderProvider.cs (1)
10/// using <see cref="BindingInfo.BinderType"/>.
ModelBinding\Binders\HeaderModelBinderProvider.cs (2)
21var bindingInfo = context.BindingInfo; 41var nestedBindingInfo = new BindingInfo(bindingInfo)
ModelBinding\DefaultModelBindingContext.cs (2)
194/// <param name="bindingInfo"><see cref="BindingInfo"/> associated with the model.</param> 201BindingInfo? bindingInfo,
ModelBinding\ModelBinderFactory.cs (5)
210BindingInfo bindingInfo; 230BindingInfo bindingInfo) 240public override BindingInfo BindingInfo { get; } 252var bindingInfo = new BindingInfo(); 258public override IModelBinder CreateBinder(ModelMetadata metadata, BindingInfo bindingInfo)
ModelBinding\ModelBinderFactoryContext.cs (2)
14/// Gets or sets the <see cref="ModelBinding.BindingInfo"/>. 16public BindingInfo? BindingInfo { get; set; }
Microsoft.AspNetCore.Mvc.Core.Test (39)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (1)
27BindingInfo = BindingInfo.GetBindingInfo(new object[] { new FromQueryAttribute() }),
ApplicationModels\InferParameterBindingInfoConventionTest.cs (20)
128var bindingInfo = parameter.BindingInfo; 137var bindingInfo = parameter.BindingInfo; 162var bindingInfo = parameter.BindingInfo; 188var bindingInfo = parameter.BindingInfo; 214var bindingInfo = parameter.BindingInfo; 236var bindingInfo = parameter.BindingInfo; 257var bindingInfo = parameter.BindingInfo; 278var bindingInfo = parameter.BindingInfo; 660var bindingInfo = parameter.BindingInfo; 681var bindingInfo = parameter.BindingInfo; 702var bindingInfo = parameter.BindingInfo; 722var bindingInfo = parameter.BindingInfo; 743var bindingInfo = parameter.BindingInfo; 764var bindingInfo = parameter.BindingInfo; 785var bindingInfo = parameter.BindingInfo; 806var bindingInfo = parameter.BindingInfo; 827var bindingInfo = parameter.BindingInfo; 848var bindingInfo = parameter.BindingInfo; 868var bindingInfo = parameter.BindingInfo; 891var bindingInfo = parameter.BindingInfo;
ApplicationModels\PropertyModelTest.cs (1)
19propertyModel.BindingInfo = BindingInfo.GetBindingInfo(propertyModel.Attributes);
ModelBinding\ModelBinderFactoryTest.cs (9)
280public static TheoryData<BindingInfo, BindingMetadata, BindingInfo> BindingInfoData 286var emptyBindingInfo = new BindingInfo(); 287var halfBindingInfo = new BindingInfo 292var fullBindingInfo = new BindingInfo 322return new TheoryData<BindingInfo, BindingMetadata, BindingInfo> 338BindingInfo parameterBindingInfo, 340BindingInfo expectedInfo)
ModelBinding\ParameterBinderTest.cs (4)
32var emptyBindingInfo = new BindingInfo(); 33var bindingInfoWithName = new BindingInfo 40return new TheoryData<BindingInfo, string, string, string> 128var bindingInfo = new BindingInfo
ModelBinding\TestModelBinderProviderContext.cs (4)
14private BindingInfo _bindingInfo; 27public TestModelBinderProviderContext(Type modelType, BindingInfo bindingInfo) 57public override BindingInfo BindingInfo => _bindingInfo; 81public override IModelBinder CreateBinder(ModelMetadata metadata, BindingInfo bindingInfo)
Microsoft.AspNetCore.Mvc.IntegrationTests (23)
BinderTypeBasedModelBinderIntegrationTest.cs (4)
133public static TheoryData<BindingInfo> NullAndEmptyBindingInfo 137return new TheoryData<BindingInfo> 152public async Task BinderTypeOnParameterType_WithData_EmptyPrefix_GetsBound(BindingInfo bindingInfo) 205public async Task BinderTypeOnProperty_WithData_EmptyPrefix_GetsBound(BindingInfo bindingInfo)
BindPropertyIntegrationTest.cs (7)
32BindingInfo = BindingInfo.GetBindingInfo(new[] { new BindPropertyAttribute() }), 59BindingInfo = BindingInfo.GetBindingInfo(new[] { new BindPropertyAttribute() { SupportsGet = true } }), 86BindingInfo = BindingInfo.GetBindingInfo(new[] { new BindPropertyAttribute() }), 111BindingInfo = BindingInfo.GetBindingInfo(new[] { new BindPropertyAttribute() }), 147BindingInfo = BindingInfo.GetBindingInfo(new[] { new BindPropertyAttribute() }), 189BindingInfo = BindingInfo.GetBindingInfo(new[] 266BindingInfo = BindingInfo.GetBindingInfo(new[] { new BindPropertyAttribute() }),
BodyValidationIntegrationTests.cs (2)
809public async Task FromBodyOnPropertyType_WithData_Succeeds(BindingInfo bindingInfo) 855public async Task FromBodyOnParameterType_WithData_Succeeds(BindingInfo bindingInfo)
ComplexRecordIntegrationTest.cs (4)
2639public async Task ModelNameOnPropertyType_WithData_Succeeds(BindingInfo bindingInfo) 2688public async Task ModelNameOnParameterType_WithData_Succeeds(BindingInfo bindingInfo) 2743public async Task BindAttributeOnPropertyType_WithData_Succeeds(BindingInfo bindingInfo) 2798public async Task BindAttributeOnParameterType_WithData_Succeeds(BindingInfo bindingInfo)
ComplexTypeIntegrationTestBase.cs (4)
2818public async Task ModelNameOnPropertyType_WithData_Succeeds(BindingInfo bindingInfo) 2867public async Task ModelNameOnParameterType_WithData_Succeeds(BindingInfo bindingInfo) 2934public async Task BindAttributeOnPropertyType_WithData_Succeeds(BindingInfo bindingInfo) 2989public async Task BindAttributeOnParameterType_WithData_Succeeds(BindingInfo bindingInfo)
ServicesModelBinderIntegrationTest.cs (2)
346public async Task FromServicesOnPropertyType_WithData_Succeeds(BindingInfo bindingInfo) 383public async Task FromServicesOnParameterType_WithData_Succeeds(BindingInfo bindingInfo)
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (5)
81BindingInfo? bindingInfo; 85bindingInfo = BindingInfo.GetBindingInfo(attributes, modelMetadata); 89bindingInfo = BindingInfo.GetBindingInfo(attributes); 113var bindingInfo = BindingInfo.GetBindingInfo(propertyAttributes, propertyMetadata);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\ExecutorFactoryTest.cs (1)
210BindingInfo = BindingInfo.GetBindingInfo(p.GetCustomAttributes()),
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiDocumentServiceTestsBase.cs (3)
200var bindingInfo = BindingInfo.GetBindingInfo(property.GetCustomAttributes().OfType<object>()); 244BindingInfo = BindingInfo.GetBindingInfo(parameter.GetCustomAttributes().OfType<object>()),