Listed equivalent C#/Java typemap names, directives etc.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4910 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
29275e3fc8
commit
216e43b774
1 changed files with 60 additions and 0 deletions
|
|
@ -13,6 +13,66 @@
|
|||
The C# module has only recently been added to SWIG and is still in a state of development.
|
||||
The C# module is very similar to the Java module, so until some documentation has been written,
|
||||
please use the <a href="Java.html">Java documentation</a> as a guide to using SWIG with C#.
|
||||
<p>
|
||||
|
||||
The most noteable differences to Java are the following:
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
When invoking SWIG use the <tt>-csharp</tt> command line option instead of <tt>-java</tt>.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Typemap equivalent names:
|
||||
|
||||
<blockquote><pre>
|
||||
jni -> ctype
|
||||
jtype -> imtype
|
||||
jstype -> cstype
|
||||
javain -> csin
|
||||
javaout -> csout
|
||||
javainterfaces -> csinterfaces
|
||||
javabase -> csbase
|
||||
javaclassmodifiers -> csclassmodifiers
|
||||
javacode -> cscode
|
||||
javaimports -> csimports
|
||||
javaptrconstructormodifiers -> csptrconstructormodifiers
|
||||
javagetcptr -> csgetcptr
|
||||
javafinalize -> csfinalize
|
||||
</pre></blockquote>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Feature equivalent names:
|
||||
<blockquote><pre>
|
||||
javaconst -> csconst
|
||||
javamethodmodifiers -> csmethodmodifiers
|
||||
</pre></blockquote>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Pragma equivalent names:
|
||||
<blockquote><pre>
|
||||
pragma(java) -> pragma(csharp)
|
||||
jniclassbase -> imclassbase
|
||||
jniclassclassmodifiers -> imclassclassmodifiers
|
||||
jniclasscode -> imclasscode
|
||||
jniclassimports -> imclassimports
|
||||
jniclassinterfaces -> imclassinterfaces
|
||||
</pre></blockquote>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Special variable equivalent names:
|
||||
<blockquote><pre>
|
||||
$javaclassname -> $csclassname
|
||||
$javainput -> $csinput
|
||||
$jnicall -> $imcall
|
||||
</pre></blockquote>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
The directory Examples/csharp has a number of examples.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue