mamift / LinqToXsdCore

LinqToXsd ported to .NET Core (targets .NET Standard 2 for generated code and .NET Core 3.1, .NET 5+ for the code generator CLI tool).
Microsoft Public License
43 stars 15 forks source link

Avoid type name conflicts in generated code. #5

Closed rvuistin closed 4 years ago

rvuistin commented 4 years ago
mamift commented 4 years ago

Hi rvuistin, I had to revert this pull request due to it breaking parts of the code generation. Specifically it broke code-generation for the static method BuildWrapperDictionary that is part of the LinqToXsdTypeManager class that gets generated for each namespace.

If you go to this diff (go to the W3C XMLSchema v1.xsd file, and then scroll to the very last diff in that file), you will see the issue. Without the BuildWrapperDictionary() method working correctly, then complexType content model validation and untyped XElement conversion fails at runtime.