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 ?? ""; Sections = sections ?? new CoalesceSections(); }