Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(string value)
- CSharpCodeProvider codeProvider = new CSharpCodeProvider();
- string sFixedName = codeProvider.CreateValidIdentifier( "somePossiblyInvalidName" );
- CodeTypeDeclaration codeType = new CodeTypeDeclaration( sFixedName );
- CodeCompiler.ValidateIdentifiers(class1);
- public static bool IsReservedKeyWord(string identifier)
- {
- Microsoft.CSharp.CSharpCodeProvider csharpProvider = new Microsoft.CSharp.CSharpCodeProvider();
- return csharpProvider.IsValidIdentifier(identifier);
- }
Add Comment
Please, Sign In to add comment