<sun/> <mon start="3:00 PM" end="11:00 PM"/> <tue start="3:00 PM" end="11:00 PM"/>
[XmlElement(ElementName = "sun", IsNullable = false)] public RestaurantDay Sunday { get; set; }
public class RestaurantDay{ [XmlAttribute(AttributeName = "start")] public string Start { get; set; } [XmlAttribute(AttributeName = "end")] public string End { get; set; } }
<xs:element name="sun" type="xs:string" minoccurs="0" maxoccurs="unbounded" xmlns:xs="#unknown" />
sun
System.ComponentModel.DefaultValueAttribute
[DefaultValue(0)] public int sun { get; set; }
public bool ShouldSerializeSun() { return sun != null; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)