Beispiel #1
0
 public void ForEach(ConfigurationNodeActionDelegate action, bool skipUnloadedNodes)
 {
     action(this);
     if (!IsChildrenLoaded)
     {
         if (skipUnloadedNodes)
         {
             return;
         }
         else
         {
             LoadChildren();
         }
     }
     foreach (ConfigurationNode childNode in _childNodes)
     {
         childNode.ForEach(action, skipUnloadedNodes);
     }
 }
 public void ForEach(ConfigurationNodeActionDelegate action, bool skipUnloadedNodes)
 {
   action(this);
   if (!IsChildrenLoaded)
     if (skipUnloadedNodes)
       return;
     else
       LoadChildren();
   foreach (ConfigurationNode childNode in _childNodes)
     childNode.ForEach(action, skipUnloadedNodes);
 }