Ejemplo n.º 1
0
        public bool CompareName(CoalesceDocument document, bool ignoreCase = false)
        {
            if (document == null)
            {
                throw new ArgumentNullException(nameof(document));
            }

            return(CompareName(document.Name, ignoreCase));
        }
Ejemplo n.º 2
0
        public void MergeRight(CoalesceDocument document)
        {
            if (document == null)
            {
                throw new ArgumentNullException(nameof(document));
            }

            throw new NotImplementedException();
        }
Ejemplo n.º 3
0
        public void Combine(CoalesceDocument document)
        {
            if (document == null)
            {
                throw new ArgumentNullException(nameof(document));
            }

            foreach (var section in document.Sections)
            {
                if (!Sections.ContainsKey(section.Key))
                {
                    Sections.Add(section.Key, section.Value);
                }
                else
                {
                    Sections[section.Key].Combine(section.Value);
                }
            }
        }