Hello,

How do I map c++ namespaces to c# ?

 

For example If I have following namespaces c++

 

namepace foo

{

namespace foo1

{

                        namespace foo2

{

// …  

}

}

namespace foo3

{

   //…

}

}

 

Swig remove all namepsaces and by default doesn’t put generated C# code under any namespace.

I know –namepsace switch in swig can put all generated code under some namespace that I specify,

but  how do I preserve all namespaces as above in generated C# code ?

 

thanks,

Pinakin.