Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Znav
nextC-Sharp Mapping for Built-In Types
prevC-Sharp Mapping for Identifiers

Slice modules map to C# namespaces with the same name as the Slice module. The mapping preserves the nesting of the Slice definitions. For example:

Wiki Markup
{zcode:slice}
module M1 {
    // Definitions for M1 here...
    module M2 {
        // Definitions for M2 here...
    };
};

// ...

module M1 {     // Reopen M1
    // More definitions for M1 here...
};
{zcode}

This definition maps to the corresponding C# definitions:

Wiki Markup
{zcode:cs}
namespace M1
{
    namespace M2
    {
        // ...
    }
    // ...
}

// ...

namespace M1    // Reopen M1
{
    // ...
}
{zcode}

If a Slice module is reopened, the corresponding C# namespace is reopened as well.

Ztop
See Also
Zret
Znav
nextC-Sharp Mapping for Built-In Types
prevC-Sharp Mapping for Identifiers