PDA

View Full Version : System.Collections.Generic.IList


jriley
08-30-2005, 02:57 PM
I'm using Visual Studion 2005 and have to set a property of System.Collections.Generic.IList<T>. Not surprising, without doing anything special, I get the following exception below. My question is, what is the best way to handle this? Write a type converter? Has anyone done this? Can I write a type converter that uses Generics?

[Spring.Objects.TypeMismatchException: Cannot convert property value of type [System.Collections.ArrayList] to required type [System.Collections.Generic.IList`1[[WhitePlume.Evaluation.ClaimTransform.IClaimTransfo rm, EvaluationCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]] for property 'ClaimTransforms'., Inner Exception: System.ArgumentException: Object of type 'System.Collections.ArrayList' cannot be converted to type 'System.Collections.Generic.IList`1

Rick Evans
08-31-2005, 01:32 PM
Hiya

Yes, the support in Spring.NET for version 2.0 of the .NET Framework is patchy to say the least.

After the 1.0 final release of Spring.NET, comprehensive support for all the new language features of version 2.0 of the .NET Framework (such as generics) will definitely be addressed.

In the interim, I have created a JIRA entry to track this issue.

http://opensource2.atlassian.com/projects/spring/browse/SPRNET-179

Ciao
Rick