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