RDunkley / XML-To-Data-Class

Tool to Generate C# custom data classes from an XML file.
Apache License 2.0
0 stars 0 forks source link

Allow Visibility Modification #28

Closed miesch1 closed 7 years ago

miesch1 commented 7 years ago

Again, to make this utility more usable, it would be amazing if I could customize the visibility of the types and members that are generated. Most of the code I want to generate is fine being public, but adding an option to make it 'internal' would be great. Extra points would be awarded to make a type or member 'static' as well.

RDunkley commented 7 years ago

I like it. I added the ability to set elements to "public" or "internal" and attributes, CDATA, and text to "public", "protected", or "internal". It got a little weird with the properties and constructors of parent elements also having to be internal if a child is internal, but this makes sense based if the class itself is internal. Thanks for submitting.