Source/NFX/Environment/ConfigNode.cs
/// <summary>
/// Adds a new section node to this configuration which is an ordered merge result of two other nodes - base and override.
/// </summary>
/// <param name="baseNode">A base node that data is defaulted from</param>
/// <param name="overrideNode">A node that contains overrides/additions of/to data from base node</param>
/// <param name="rules">Rules to use for this merge. Default rules will be used if null is passed</param>
Adds a new section node to this configuration which is an ordered merge result of two other nodes - base and override.
Adds a new section node to this configuration which is an ordered merge result of two other nodes - base and override .
public ConfigSectionNode AddChildNodeFromMerge(IConfigSectionNode baseNode, IConfigSectionNode overrideNode, NodeOverrideRules rules = null)
        {
          checkCanModify();
          var newNode = new ConfigSectionNode(m_Configuration, this, baseNode);
          newNode.OverrideBy(overrideNode, rules);
          lock (m_Children)
          {
            m_Children.Add(newNode);
            m_Modified = true;
          }
          return newNode;
        }
public ConfigSectionNode AddChildNodeFromMerge ( IConfigSectionNode baseNode , IConfigSectionNode overrideNode , NodeOverrideRules rules = null ) { checkCanModify ( ) ; var newNode = new ConfigSectionNode ( m_Configuration , this , baseNode ) ; newNode . OverrideBy ( overrideNode , rules ) ; lock ( m_Children ) { m_Children . Add ( newNode ) ; m_Modified = true ; } return newNode ; }
Adds a new section node to this configuration which is an ordered merge result of two other nodes - base and override.
Adds a new section node to this configuration which is an ordered merge result of two other nodes - base and override .
baseNode
IConfigSectionNode
A base node that data is defaulted from
A base node that data is defaulted from
overrideNode
IConfigSectionNode
A node that contains overrides/additions of/to data from base node
A node that contains overrides / additions of / to data from base node
rules
NodeOverrideRules
Rules to use for this merge. Default rules will be used if null is passed
Rules to use for this merge . Default rules will be used if null is passed