diff options
Diffstat (limited to 'Doc/Manual/CSharp.html')
-rw-r--r-- | Doc/Manual/CSharp.html | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/Doc/Manual/CSharp.html b/Doc/Manual/CSharp.html index 67b3beed8..bac6f7417 100644 --- a/Doc/Manual/CSharp.html +++ b/Doc/Manual/CSharp.html @@ -4,12 +4,12 @@ <title>SWIG and C#</title> </head> <body bgcolor="#FFFFFF"> -<a name="n1"></a><H1>15 SWIG and C#</H1> +<H1><a name="CSharp"></a>16 SWIG and C#</H1> <!-- INDEX --> -<ul> -</ul> <!-- INDEX --> + + The purpose of the C# module is to offer an automated way of accessing existing C/C++ code from .NET languages. The wrapper code implementation uses the Platform Invoke (PINVOKE) interface to access natively compiled C/C++ code. The PINVOKE interface has been chosen over Microsoft's Managed C++ interface as it is portable to both Microsoft Windows and non-Microsoft platforms. @@ -18,7 +18,7 @@ PINVOKE is part of the ECMA/ISO C# specification. <p> The C# module is one of the more recently added language modules to SWIG and consequently is missing some functionality available in some other SWIG modules. 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#. +please use the <a href="Java.html#Java">Java documentation</a> as a guide to using SWIG with C#. The rest of this chapter should be read in conjunction with the Java documentation as it lists the main differences. <p> @@ -52,7 +52,7 @@ There is no implementation for type unsafe enums - not deemed necessary. <li> The default enum wrapping approach is proper C# enums, not typesafe enums. -<br/> +<br> Note that %csconst(0) will be ignored when wrapping C/C++ enums with proper C# enums. This is because C# enum items must be initialised from a compile time constant. If an enum item has an initialiser and the initialiser doesn't compile as C# code, @@ -70,20 +70,20 @@ Likewise there is no need for an equivalent to <tt>%javaexception</tt>. Typemap equivalent names: <blockquote><pre> -jni -> ctype -jtype -> imtype -jstype -> cstype -javain -> csin -javaout -> csout -javainterfaces -> csinterfaces and csinterfaces_derived -javabase -> csbase -javaclassmodifiers -> csclassmodifiers -javacode -> cscode -javaimports -> csimports -javabody -> csbody -javafinalize -> csfinalize -javadestruct -> csdestruct -javadestruct_derived -> csdestruct_derived +jni -> ctype +jtype -> imtype +jstype -> cstype +javain -> csin +javaout -> csout +javainterfaces -> csinterfaces and csinterfaces_derived +javabase -> csbase +javaclassmodifiers -> csclassmodifiers +javacode -> cscode +javaimports -> csimports +javabody -> csbody +javafinalize -> csfinalize +javadestruct -> csdestruct +javadestruct_derived -> csdestruct_derived </pre></blockquote> </li> @@ -101,30 +101,30 @@ csvarout C# code property get typemap <li> Feature equivalent names: <blockquote><pre> -%javaconst -> %csconst -%javaconstvalue -> %csconstvalue -%javamethodmodifiers -> %csmethodmodifiers +%javaconst -> %csconst +%javaconstvalue -> %csconstvalue +%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 +%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 +$javaclassname -> $csclassname +$javainput -> $csinput +$jnicall -> $imcall </pre></blockquote> </li> |