System.Configuration.ConfigurationElement.ApplyValidatorsRecursive C# (CSharp) Метод

ApplyValidatorsRecursive() приватный статический Метод

private static ApplyValidatorsRecursive ( ConfigurationElement root ) : void
root ConfigurationElement
Результат void
        private static void ApplyValidatorsRecursive(ConfigurationElement root) {
            Debug.Assert(root != null);

            // Apply the validator on 'root'
            ApplyValidator(root);

            // Apply validators on child elements ( note - we will do this only on already created child elements
            // The non created ones will get their validators in the ctor
            foreach (ConfigurationElement elem in root._values.ConfigurationElements) {

                ApplyValidatorsRecursive(elem);
            } 
        }