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