Table of Contents Previous Next
Logo
Client-Side Slice-to-C# Mapping : 14.4 Mapping for Modules
Copyright © 2003-2009 ZeroC, Inc.

14.4 Mapping for Modules

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:
module M1 {
    // Definitions for M1 here...
    module M2 {
        // Definitions for M2 here...
    };
};

// ...

module M1 {     // Reopen M1
    // More definitions for M1 here...
};
This definition maps to the corresponding C# definitions:
namespace M1
{
    namespace M2
    {
        // ...
    }
    // ...
}

// ...

namespace M1    // Reopen M1
{
    // ...
}
If a Slice module is reopened, the corresponding C# namespace is reopened as well.
Table of Contents Previous Next
Logo