/// <summary>
        /// Returns a deep copy of the current <see cref="AutoSplitList"/>.
        /// </summary>
        public AutoSplitList Clone(AutoSplitEnv env)
        {
            var clone = new AutoSplitList(Name);

            clone.AddRange(this.Select(a => a.Clone(env)));
            return(clone);
        }
        public static AutoSplitList FromXml(XmlElement elem, AutoSplitEnv env)
        {
            var list = new AutoSplitList(elem[nameof(Name)]?.InnerText ?? "");

            foreach (XmlElement child in elem["AutoSplits"])
            {
                list.Add(AutoSplit.FromXml(child, env));
            }
            return(list);
        }
示例#3
0
 public AutoSplitManager()
 {
     AutoSplitList = new AutoSplitList();
 }