add info about new $imclassname and %module(imclassname="..")
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c2073866b3
commit
580badb099
1 changed files with 26 additions and 0 deletions
|
|
@ -316,6 +316,26 @@ This feature is useful for some obscure cases where SWIG might get the <tt>virtu
|
|||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a name="csharp_module_directive">
|
||||
<p>
|
||||
The name of the intermediary class can be changed from its default, that is, the module name with PINVOKE appended after it.
|
||||
The module directive attribute <tt>imclassname</tt> is used to achieve this:
|
||||
</p>
|
||||
|
||||
<div class="code">
|
||||
<pre>
|
||||
%module (imclassname="name") modulename
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
If <tt>name</tt> is the same as <tt>modulename</tt> then the module class name gets changed
|
||||
from <tt>modulename</tt> to <tt>modulenameModule</tt>.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
|
|
@ -325,6 +345,12 @@ The special variable will get translated into the value specified by the <tt>-dl
|
|||
if specified, otherwise it is equivalent to the <b>$module</b> special variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b><tt>$imclassname</tt></b><br>
|
||||
This special variable expands to the intermediary class name. For C# this is usually the same as '$modulePINVOKE' ('$moduleJNI' for Java),
|
||||
unless the imclassname attribute is specified in the <a href="CSharp.html#csharp_module_directive">%module directive</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The directory <tt>Examples/csharp</tt> has a number of simple examples.
|
||||
Visual Studio .NET 2003 solution and project files are available for compiling with the Microsoft .NET C# compiler on Windows.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue