Next: , Previous: , Up: Interfacing with C#   [Contents] Using pragma foreign_export_enum for C#

For C# the symbolic names generated by a ‘pragma foreign_export_enum’ must form valid C# identifiers. These identifiers are used as the names of static class members.

The default mapping used by ‘pragma foreign_export_enum’ declarations for C# is to use the Mercury constructor name as the base of the symbolic name. For example, the symbolic name for the Mercury constructor ‘foo’ would be foo.