I have a property defined as:
[XmlArray("delete", IsNullable = true)]
[XmlArrayItem("contact", typeof(ContactEvent)),
XmlArrayItem("sms", typeof(SmsEvent))]
public List<Event> Delete { get; set; }
If List <> Delete has no items
<delete />
. If List <> Delete is set to null
<delete xsi:nil="true" />
. Is there a way to use attributes to remove a delete item if it has no items?
Greg - Great thanks, I didn't even read the IsNullable documentation, just assuming it signals this as not required.
Rob Cooper - ISerializable, . , (1), , null, . , EventsBuilder (, , Events), / Events, Events .