Microsoft.CSharp.CSharpCodeGenerator.ValidateIdentifier C# (CSharp) Méthode

ValidateIdentifier() public méthode

public ValidateIdentifier ( string value ) : void
value string
Résultat void
        public void ValidateIdentifier(string value)
        {
            if (!IsValidIdentifier(value))
            {
                throw new ArgumentException(SR.Format(SR.InvalidIdentifier, value));
            }
        }
CSharpCodeGenerator