1 type derived from SimpleTypeModelBinder
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\EnumTypeModelBinder.cs (1)
14public class EnumTypeModelBinder : SimpleTypeModelBinder
56 instantiations of SimpleTypeModelBinder
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\SimpleTypeModelBinderProvider.cs (1)
24return new SimpleTypeModelBinder(context.Metadata.ModelType, loggerFactory);
Microsoft.AspNetCore.Mvc.Core.Test (55)
ModelBinding\Binders\ArrayModelBinderTest.cs (5)
29new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance), 56new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 91new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 140new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 203new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance),
ModelBinding\Binders\DictionaryModelBinderTest.cs (29)
35new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance), 36new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 76new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance), 77new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 133new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 134new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 166new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 167new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 204new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 205new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 241new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 242new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 291new SimpleTypeModelBinder(typeof(long), NullLoggerFactory.Instance), 292new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance), 345new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance), 348{ valueMetadata.Properties["Id"], new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance) }, 349{ valueMetadata.Properties["Name"], new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance) }, 387new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 388new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 426new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 427new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 462new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 463new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 510new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 511new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 557new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance), 558new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance), 609new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance), 610new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance),
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (4)
147new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 148new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 178new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance), 179new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance),
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (17)
27var binder = new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance); 55var binder = new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance); 101var binder = new SimpleTypeModelBinder(destinationType, NullLoggerFactory.Instance); 120var binder = new SimpleTypeModelBinder(destinationType, NullLoggerFactory.Instance); 145var binder = new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance); 185var binder = new SimpleTypeModelBinder(typeof(int), loggerFactory); 208var binder = new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance); 228var binder = new SimpleTypeModelBinder(typeof(int?), NullLoggerFactory.Instance); 249var binder = new SimpleTypeModelBinder(typeof(double?), NullLoggerFactory.Instance); 274var binder = new SimpleTypeModelBinder(typeof(int), loggerFactory); 317var binder = new SimpleTypeModelBinder(type, NullLoggerFactory.Instance); 345var binder = new SimpleTypeModelBinder(typeof(decimal), NullLoggerFactory.Instance); 366var binder = new SimpleTypeModelBinder(typeof(decimal), NullLoggerFactory.Instance); 390var binder = new SimpleTypeModelBinder(typeof(IntEnum), NullLoggerFactory.Instance); 411var binder = new SimpleTypeModelBinder(typeof(IntEnum), NullLoggerFactory.Instance); 452var binder = new SimpleTypeModelBinder(typeof(IntEnum), NullLoggerFactory.Instance); 475var binder = new SimpleTypeModelBinder(typeof(FlagsEnum), NullLoggerFactory.Instance);
25 references to SimpleTypeModelBinder
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
ModelBinding\BindingInfoTest.cs (2)
109metadata.BinderType = typeof(SimpleTypeModelBinder); 158metadata.BinderType = typeof(SimpleTypeModelBinder);
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\SimpleTypeModelBinder.cs (2)
21/// Initializes a new instance of <see cref="SimpleTypeModelBinder"/>. 31_logger = loggerFactory.CreateLogger(typeof(SimpleTypeModelBinder));
ModelBinding\Binders\TryParseModelBinder.cs (1)
29/// Initializes a new instance of <see cref="SimpleTypeModelBinder"/>.
Microsoft.AspNetCore.Mvc.Core.Test (19)
ModelBinding\Binders\SimpleTypeModelBinderProviderTest.cs (1)
43Assert.IsType<SimpleTypeModelBinder>(result);
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (17)
27var binder = new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance); 55var binder = new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance); 101var binder = new SimpleTypeModelBinder(destinationType, NullLoggerFactory.Instance); 120var binder = new SimpleTypeModelBinder(destinationType, NullLoggerFactory.Instance); 145var binder = new SimpleTypeModelBinder(typeof(int), NullLoggerFactory.Instance); 185var binder = new SimpleTypeModelBinder(typeof(int), loggerFactory); 208var binder = new SimpleTypeModelBinder(typeof(string), NullLoggerFactory.Instance); 228var binder = new SimpleTypeModelBinder(typeof(int?), NullLoggerFactory.Instance); 249var binder = new SimpleTypeModelBinder(typeof(double?), NullLoggerFactory.Instance); 274var binder = new SimpleTypeModelBinder(typeof(int), loggerFactory); 317var binder = new SimpleTypeModelBinder(type, NullLoggerFactory.Instance); 345var binder = new SimpleTypeModelBinder(typeof(decimal), NullLoggerFactory.Instance); 366var binder = new SimpleTypeModelBinder(typeof(decimal), NullLoggerFactory.Instance); 390var binder = new SimpleTypeModelBinder(typeof(IntEnum), NullLoggerFactory.Instance); 411var binder = new SimpleTypeModelBinder(typeof(IntEnum), NullLoggerFactory.Instance); 452var binder = new SimpleTypeModelBinder(typeof(IntEnum), NullLoggerFactory.Instance); 475var binder = new SimpleTypeModelBinder(typeof(FlagsEnum), NullLoggerFactory.Instance);
ModelBinding\ParameterBinderTest.cs (1)
36BinderType = typeof(SimpleTypeModelBinder),
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelMetadataProviderTest.cs (1)
647new TestBinderTypeProvider() { BinderType = typeof(SimpleTypeModelBinder) }