From 19f9395193b4d0b10dd819666df09f1dcc8bb1c5 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 27 Jun 2004 21:12:21 +0000 Subject: [PATCH] few corrections and updates git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6006 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Doc/Manual/CSharp.html | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/Doc/Manual/CSharp.html b/Doc/Manual/CSharp.html index b6232e398..c86fe465d 100644 --- a/Doc/Manual/CSharp.html +++ b/Doc/Manual/CSharp.html @@ -46,8 +46,18 @@ C/C++ variables are wrapped with C# properties and not JavaBean style getters an Global constants are generated into the module class. There is no constants interface. +
  • +There is no implementation for type unsafe enums - not deemed necessary. +
  • +
  • The default enum wrapping approach is proper C# enums, not typesafe enums. +
    +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, +then the %csconstvalue directive must be used as %csconst(0) will have no effect. +If it was used, it would generate an illegal runtime initialisation via a PINVOKE call.
  • @@ -59,13 +69,12 @@ jtype -> imtype jstype -> cstype javain -> csin javaout -> csout -javainterfaces -> csinterfaces +javainterfaces -> csinterfaces and csinterfaces_derived javabase -> csbase javaclassmodifiers -> csclassmodifiers javacode -> cscode javaimports -> csimports -javaptrconstructormodifiers -> csptrconstructormodifiers -javagetcptr -> csgetcptr +javabody -> csbody javafinalize -> csfinalize javadestruct -> csdestruct javadestruct_derived -> csdestruct_derived @@ -86,15 +95,16 @@ csvarout C# code property get typemap
  • Feature equivalent names:
    -javaconst                   -> csconst
    -javamethodmodifiers         -> csmethodmodifiers
    +%javaconst                  -> %csconst
    +%javaconstvalue             -> %csconstvalue
    +%javamethodmodifiers        -> %csmethodmodifiers
     
  • Pragma equivalent names:
    -pragma(java)                -> pragma(csharp)
    +%pragma(java)               -> %pragma(csharp)
     jniclassbase                -> imclassbase
     jniclassclassmodifiers      -> imclassclassmodifiers
     jniclasscode                -> imclasscode
    @@ -126,3 +136,4 @@ Any one of the three C# compilers (Portable.NET, Mono or Microsoft) can be detec
     
     
     
    +