Illegal characters in class names [duplicate]
-
29-03-2021 - |
Question
Possible Duplicate:
What characters are allowed in C# class name?
I'm using edmgen
to dynamically create classes from my database. But it seems like some of the characters in table names are considered illegal and are converted to _
(e.g. table named: test!@#$%^&*()[]
will be converted to test____________
.
What are the illegal characters that are being converted to _
when generating object layer code?
Solution
All alphanumeric unicode characters and underscore are valid, but it cannot begin with a number, so anything not belonging in there is invalid.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow