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
[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