Show/Hide Toolbars

XSharp

Symbol literals consist of the '#' character, followed by one of more alphanumeric characters:

#XSharp
#AnExample

Even though the examples above are written in mixed case, the compiler will treat them as all uppercase.

Symbol literals are compiled only once by the X# compiler, for performance reasons.
Each .Net assembly created by the X# compiler will have a special, compiler-generated class, that contains all the literal symbols found in that assembly.
These literals are initialized at startup and stored in the symbol table in the runtime.