static bool isValidIdentifier(string value) { Microsoft.CSharp.CSharpCodeProvider prov = new Microsoft.CSharp.CSharpCodeProvider(); return(prov.IsValidIdentifier(value)); }