using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace DQ.Construction.NewLook.DataTemplate
{
///
/// DateTemplateMatch
///
[XmlRoot(ElementName = "Config")]
public class DateTemplateMatch
{
///
/// DateTemplateItem
///
[XmlElement(ElementName = "Entry")]
public List Items { get; set; } = new List();
}
///
/// DateTemplateMatchItem
///
public class DateTemplateMatchItem
{
///
/// From
///
[XmlAttribute(AttributeName = "From")]
public string From { get; set; }
///
/// To
///
[XmlAttribute(AttributeName = "TO")]
public string To
{
get => this.mTo;
set
{
if (this.mTo != value)
{
this.mTo = value;
this.ToList = this.mTo.Split(new[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
}
}
}
[XmlIgnore]
private string mTo;
///
/// 获取to列表
///
[XmlIgnore]
public string[] ToList { get; private set; }
}
}