https://github.com/loune/MVCStuff/blob/master/Extensions/DefaultDictionaryBinder.cs#L53
.NET4.5
I have MyViewModel with type Dictionary<id, ComplexType>.
GetInterfaces(typeof(MyViewModel)) return 3 interfaces:
System.Collections.Generic.ICollection'1[[System.Collections.Generic.KeyValuePair'2[[System.Int32, ...],[namespace.Models.MyViewModel, ...]]
System.Collections.Generic.IEnumerable'1[[System.Collections.Generic.KeyValuePair'2[[System.Int32, ...],[namespace.Models.MyViewModel, ...]]
System.Collections.IEnumerable
So, code modelType.GetInterface("System.Collections.Generic.IDictionary'2") return null. And extension dont work.
How to fix it?