Esempio n. 1
0
        /// <summary>
        ///     Validate a property.
        /// </summary>
        /// <param name="section">The section.</param>
        /// <param name="subSection">The sub section.</param>
        /// <param name="name">The name of the property.</param>
        /// <param name="value_ren">The new value for the property.</param>
        private void ValidateProperty(String section,
                                      String subSection, String name, String value_ren)
        {
            PropertyEntry entry = PropertyConstraints.Instance.GetEntry(
                section, subSection, name);

            if (entry == null)
            {
                throw new AnalystError("Unknown property: "
                                       + PropertyEntry.DotForm(section, subSection, name));
            }
            entry.Validate(section, subSection, name, value_ren);
        }