Quantcast
Channel: xsd2Code community edition .net class generator from XSD schema
Viewing all articles
Browse latest Browse all 543

Commented Issue: List property doesn't need setter [14357]

$
0
0
A List property id generated with both a getter and a setter. Code Analysis complains about the setter with a CA2227.

You don't need a setter as you initialize that list (correctly!) in the constructor.
Comments: ** Comment from web user: bugmenot2 **

This should not be considered a bug. In the case where one wishes to replace the entire List with another, a mutator ("setter") is essential. The v3.5 beta seems to not add mutators to Lists. Please reintroduce this feature, and perhaps an option to let the user decide if they want mutators on their Lists.


Viewing all articles
Browse latest Browse all 543

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>