10 instantiations of KeyValuePairModelBinder
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\DictionaryModelBinder.cs (3)
29
: base(new
KeyValuePairModelBinder
<TKey, TValue>(keyBinder, valueBinder, loggerFactory), loggerFactory)
60
new
KeyValuePairModelBinder
<TKey, TValue>(keyBinder, valueBinder, loggerFactory),
99
new
KeyValuePairModelBinder
<TKey, TValue>(keyBinder, valueBinder, loggerFactory),
Microsoft.AspNetCore.Mvc.Core.Test (7)
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (7)
19
var binder = new
KeyValuePairModelBinder
<int, string>(
44
var binder = new
KeyValuePairModelBinder
<int, string>(
70
var binder = new
KeyValuePairModelBinder
<int, string>(
91
var binder = new
KeyValuePairModelBinder
<int, string>(
132
var binder = new
KeyValuePairModelBinder
<int, string>(innerBinder, innerBinder, NullLoggerFactory.Instance);
146
var binder = new
KeyValuePairModelBinder
<string, string>(
177
var binder = new
KeyValuePairModelBinder
<string, string>(
13 references to KeyValuePairModelBinder
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\KeyValuePairModelBinder.cs (3)
35
_logger = loggerFactory.CreateLogger(typeof(
KeyValuePairModelBinder
<TKey, TValue>));
46
var keyResult = await
KeyValuePairModelBinder
<TKey, TValue>.TryBindStrongModel<TKey?>(bindingContext, _keyBinder, "Key", keyModelName);
49
var valueResult = await
KeyValuePairModelBinder
<TKey, TValue>.TryBindStrongModel<TValue?>(bindingContext, _valueBinder, "Value", valueModelName);
ModelBinding\Binders\KeyValuePairModelBinderProvider.cs (1)
33
var binderType = typeof(
KeyValuePairModelBinder
<,>).MakeGenericType(typeArguments);
Microsoft.AspNetCore.Mvc.Core.Test (9)
ModelBinding\Binders\KeyValuePairModelBinderProviderTest.cs (1)
53
Assert.IsType<
KeyValuePairModelBinder
<string, int>>(result);
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (8)
19
var
binder = new KeyValuePairModelBinder<int, string>(
44
var
binder = new KeyValuePairModelBinder<int, string>(
70
var
binder = new KeyValuePairModelBinder<int, string>(
91
var
binder = new KeyValuePairModelBinder<int, string>(
132
var
binder = new KeyValuePairModelBinder<int, string>(innerBinder, innerBinder, NullLoggerFactory.Instance);
135
var result = await
KeyValuePairModelBinder
<int, string>.TryBindStrongModel<int>(bindingContext, innerBinder, "Key", "someName.Key");
146
var
binder = new KeyValuePairModelBinder<string, string>(
177
var
binder = new KeyValuePairModelBinder<string, string>(