Boo.BooLangProject.GeneralPropertyPage.ValidateRootNamespace C# (CSharp) Method

ValidateRootNamespace() private method

private ValidateRootNamespace ( ) : void
return void
        private void ValidateRootNamespace()
        {
            String invalidChars = @"([/?:&\\*<>|#%!" + '\"' + "])";
            Regex invalidCharactersRegex = new Regex(invalidChars, RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);

            if (invalidCharactersRegex.IsMatch(this.defaultNamespace))
            {
              throw new ArgumentException("Default Namespace:\nThe string for the default namespace must be a valid identifier");
            }
        }