From the docs :
Only the first 2048 characters of
Microsoft C++ identifiers are significant.
Names for user-defined types are "decorated" by the compiler to preserve type information.
The resultant name, including the type information, cannot be longer than 2048 characters.
Technically, there isn't one in C# (an identifier length )
- the CLI does not impose any limit, neither does the C# specification.
However, in practice, the C# compiler does impose a limit of 511 characters per name.
If you declare something with 511 characters you are fine, 512 and you will get an "Identifier to long" error.
I really don't know what to make of the distinction . . . but the 2048 number caught my attention while reading some C++ docs.
Both figures are huge, imagine using 6.3 80 character lines to name a C# identifier.
You'd sure need intellisense.
. . . . I have trouble pronouncing and remembering even the simple 12 character names