I am developing a class library which takes a class as input and uses reflection to parse through that input class. While parsing the input class, system looks for all the properties in that class marked with a speical attribute (custom defined my by framework).
Once system gets all the properties in that class and based on "Type" of the property it actually generates XML. (If the type is string, it generate text box, if the type is list it generate dropdown list and so on) Right now, system is supporting 4-5
basic types and all the logic is harcoded. What I am trying to achieve is system to support user defined types so user can specify there own type or may be a type converter based on which I should be able to generate XML.
Please suggest the best solution for this problem.
Is it feasibale to use Type converters in this case? Or we have another approach?
View Complete Post