Create classes without the Items/itemsField fields.

Jan 11, 2012 at 7:00 PM
Edited Jan 11, 2012 at 7:00 PM
Hi,
the automatic generation always creates data structures like these:
        
        [System.Xml.Serialization.XmlElementAttribute("auto_off", typeof(uint))]
        [System.Xml.Serialization.XmlElementAttribute("delay_off", typeof(uint))]
        [System.Xml.Serialization.XmlElementAttribute("delay_on", typeof(uint))]
        [System.Xml.Serialization.XmlElementAttribute("disable_time", typeof(uint))]
        [System.Xml.Serialization.XmlElementAttribute("repeat_off_duration", typeof(uint))]
        [System.Xml.Serialization.XmlElementAttribute("repeat_on_duration", typeof(uint))]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public object[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
But I would like them to be like this:
        public uint auto_off { get; set; }
        public uint delay_off { get; set; }
        public uint delay_on { get; set; }
        public uint disable_time { get; set; }
        public uint repeat_off_duration { get; set; }
        public uint repeat_on_duration { get; set; }
Are there options, which I can set , that makes the conversion create classes like this? Otherwise it is still a greate tool. Even if I have to makro rewrite all the class elements, it still saved a lot of time.