W
Wavemaker
I was wondering if there is way in the .NET framework to test if a
string represents a valid identifier name for the C# language. I want to
write a program that will generate code based on user input. Part of the
program's job will be to use names provided by the user to name classes,
methods, etc. Some error checking would be involved to make sure the
names use legal C# syntax. Before rolling my own code to do the error
checking, I wanted to check to see if this functionality already exists.
string represents a valid identifier name for the C# language. I want to
write a program that will generate code based on user input. Part of the
program's job will be to use names provided by the user to name classes,
methods, etc. Some error checking would be involved to make sure the
names use legal C# syntax. Before rolling my own code to do the error
checking, I wanted to check to see if this functionality already exists.