public void Combine(CoalesceSections sections)
        {
            if (sections == null)
            {
                throw new ArgumentNullException(nameof(sections));
            }

            foreach (var section in sections)
            {
                if (!ContainsKey(section.Key))
                {
                    Add(section.Key, section.Value);
                }
                else
                {
                    this[section.Key].Combine(section.Value);
                }
            }
        }
 public CoalesceAsset(string name = null, CoalesceSections sections = null)
 {
     Name     = name ?? "CoalesceAsset";
     Sections = sections ?? new CoalesceSections();
 }
Beispiel #3
0
 public CoalesceDocument(string name = null, CoalesceSections sections = null)
 {
     Name     = name ?? nameof(CoalesceDocument);
     Sections = sections ?? new CoalesceSections();
 }