Here are the sample constant definitions once more:
Here are the generated definitions for these constants:
As you can see, each Slice constant is mapped to a class with the same name as the constant. The class contains a member named
value that holds the value of the constant.
The mapping to classes instead of to plain constants is necessary because C# does not permit constant definitions at namespace scope.
Slice string literals that contain non-ASCII characters or universal character names are mapped to C# string literals with universal character names. For example:
is mapped to: