[SPRNET-1471] Set IDictionary<K,V> property using non-generic <dictionary/> element. Created: 28/Sep/11  Updated: 15/Nov/11  Resolved: 15/Nov/11

Status: Resolved
Project: Spring.NET
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0 M1

Type: Improvement Priority: Minor
Reporter: Choy Rim Assignee: Steve Bohlen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relates to SPRNET-1470 Setting property of type IList<T> usi... Resolved


Setting a List<T> property is supported by automatic conversion from ICollection to List<>. Something similar for IDictionary<K,V> properties should be supported.

Comment by Choy Rim [ 28/Sep/11 ]

This improvement also alludes to support for IEnumerable<T>, ICollection<T> and other well-known generic interfaces.

But at that point TypeConversionUtils starts to smell of a hidden abstraction. Perhaps we need to expand upon the TypeConverter infrastructure to support type conversion for generic types. ConvertFrom is probably still usable. Perhaps all it requires is an alternate type converter registry.

Comment by Steve Bohlen [ 15/Nov/11 ]

Fixed in Pull 6 https://github.com/SpringSource/spring-net/pull/6

Generated at Tue Oct 22 23:48:32 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.