views:

131

answers:

0

I have a class, Questionnaire, which contains a collection class that wraps a generic list, EntityCollection. I am using ViewState to persist the Questionnaire and its collection of Questions. I am using custom type converters to reduce the ViewState size. Everything works without a type converter for EntityCollection<T>. Would things work more efficiently if EntityCollection had its own TypeConverter? If so, how would that work since the converter cannot know what class it is converting from? At present, I new EntityCollection inside QuestionnaireConverter and pass it a string representation of the questions and also pass in a generic Func delegate type, Func<string, T>, which calls the Question constructor that takes a string. I made a dummy EntityCollection constructor, but it's methods are never called.