private void ValidateXmlName(ValidationContext context)
        {
            string msg = "";

            if (!NamingHelper.TryValidateElementsItemNameProperty(this.Name, NamingHelper.ValidationOptions.IsRequired | NamingHelper.ValidationOptions.IsXml, out msg))
            {
                context.LogError(msg, "RequiredProperty", this);
            }
        }
        private void ValidateName(ValidationContext context)
        {
            Debug.WriteLine("ConfigurationElement.ValidateName called for " + this.Name); // CALLED!
            string msg = "";

            if (!NamingHelper.TryValidateElementsItemNameProperty(this.Name, NamingHelper.ValidationOptions.IsRequired, out msg))
            {
                context.LogError(msg, "RequiredProperty", this);
            }
        }