You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forgive me if this is already possible somehow, but when there is an element/class with only a single sequence within it, could it just use a List<T> where the name of the variable is the name of the element? This would solve several cases where the collection name should be plural too.
<Foo>
<Bars>
<Bar/>
<Bar/>
<Bar/>
<Bars>
</Foo>
currently makes:
publicclassFoo{publicBarsBars{get;}=new();}publicclassBars{publicList<Bar> Bar {get;}=new();}publicclassBar{}// AccessFoofoo=new();foreach(varbarin foo.Bars.Bar){}
Maybe this is already possible, either with a flag or by changing the XSD somehow, or maybe it wouldn't work with the XmlSerializer, but it seems like it should be this way.
The text was updated successfully, but these errors were encountered:
This should be possible by using the --useArrayItemAttribute option which is true by default. If this doesn't work for you, can you share an example xsd?
Forgive me if this is already possible somehow, but when there is an element/class with only a single sequence within it, could it just use a
List<T>
where the name of the variable is the name of the element? This would solve several cases where the collection name should be plural too.currently makes:
But could be:
Maybe this is already possible, either with a flag or by changing the XSD somehow, or maybe it wouldn't work with the
XmlSerializer
, but it seems like it should be this way.The text was updated successfully, but these errors were encountered: