DictionaryModelBinder<TKey, TValue> Class¶
Summary¶
[Microsoft.AspNet.Mvc.ModelBinding.IModelBinder]() implementation for binding dictionary values.
Inheritance Hierarchy¶
System.Object
Microsoft.AspNet.Mvc.ModelBinding.CollectionModelBinder{System.Collections.Generic.KeyValuePair{{TKey},{TValue}}}
Microsoft.AspNet.Mvc.ModelBinding.DictionaryModelBinder<TKey, TValue>
Syntax¶
public class DictionaryModelBinder<TKey, TValue> : CollectionModelBinder<KeyValuePair<TKey, TValue>>, IModelBinder
Methods¶
-
Microsoft.AspNet.Mvc.ModelBinding.DictionaryModelBinder<TKey, TValue>.CreateEmptyCollection()
Return type: System.Object protected override object CreateEmptyCollection()
-
GetModel
(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey, TValue>>)¶ Arguments: - newCollection (System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{{TKey},{TValue}}}) –
Return type: System.Object
protected override object GetModel(IEnumerable<KeyValuePair<TKey, TValue>> newCollection)
-