I have an XSD containing a simple type like this:
<xs:simpleType name="csharpName" id="csharpName">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Za-z][A-Za-z0-9_]*" />
</xs:restriction>
</xs:simpleType>
Now when I use this type:
<xs:element name="typeName" type="csharpName" />
LINQ to XSD generates
this.SetElementWithValidation(XName.Get("typeName", ""), value, "typeName", global::.csharpName.TypeDefinition);`
Notice the ::.
after global. Now that dot is very wrong there, I assume I'm missing a namespace. Now if I delete the dot manually it's working quite alright, but I'd rather not delete the dozen or so occurrences on every generation.
Do you have any ideas?