I think this is at least somewhat connected to reflection so I posted it here.
I work with WCF and Web Services right now. Of course I use the tools provided to generate code from the WSDL documents, hence, for every datatype, a corresponding class is generated. As the WS has loads of types with nested subtypes, I get about
80 usually small classes, only having a few members. In order to implement all that, I have to initialize the classes over and over again.
So I wonder, if there is no way, to use reflection to automatically generate code (object inizializer) from the class definition, including all subclasses?
Ideal would be a snipped - so that I just enter the name of any random class and dynamically get the full initializer generated. Do snippets actually have the power to do that?
As this will save a lot of stupid typing, I also wonder, if there aren't already any tools, snippets or widgets that do this? I assumed that is is something many programmers might need, but google did not show anything like it.
Thank you very much!
View Complete Post