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

GenerateClassName in ElementInfo can return invalid C# identifier #18

Closed RDunkley closed 8 years ago

RDunkley commented 8 years ago

The GenerateClassName method does not account for all the possible invalid characters for a C# identifier. This should call into StringUtility in CSCodeGen library to obtain the derived name that is a valid c# identifier. This also applies to GeneratePropertyName in DataInfo.