L
Larry Bud
I've got 2 XSD files which I've converted to classes with the xsd.exe
tool. I've created the first XMLSerializer object just fine, but the
2nd throws an exception when creating from the root class:
deserializer = New XmlSerializer(GetType(myrootclass))
Unable to generate a temporary class (result=1). error CS0030: Cannot
convert type 'string[]' to 'string' error CS0029: Cannot implicitly
convert type 'string' to 'string[]'
There's about 50 classes in this class file. I've gotten part of the
way down the tree so I can try to identify exactly what is throwing
this (and what it really means), but is there a better way, and more
importantly, how bad is XSD.exe in creating a class file that doesn't
serialize?
tool. I've created the first XMLSerializer object just fine, but the
2nd throws an exception when creating from the root class:
deserializer = New XmlSerializer(GetType(myrootclass))
Unable to generate a temporary class (result=1). error CS0030: Cannot
convert type 'string[]' to 'string' error CS0029: Cannot implicitly
convert type 'string' to 'string[]'
There's about 50 classes in this class file. I've gotten part of the
way down the tree so I can try to identify exactly what is throwing
this (and what it really means), but is there a better way, and more
importantly, how bad is XSD.exe in creating a class file that doesn't
serialize?