More flexible variable wrappers (C# properties). The property set can now support a different type to that used in the intermediary layer. This is achieved by using a temporary variable and specifying the name of the temporary variable in a new 'valueparm' attribute in the csvarin typemap. Also Fix bug reported by Glenn A Watson and #1795260 where the cstype typemap used the 'ref' keyword in the typemap body. The type for the property now correctly comes from the 'out' attribute in the cstype typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0798630f72
commit
d737022daa
3 changed files with 42 additions and 10 deletions
|
|
@ -19,7 +19,7 @@ public class runme
|
|||
initialLetters.Append(myChar);
|
||||
if (initialLetters.ToString() != "bhox")
|
||||
throw new Exception("initial letters failed");
|
||||
if (csharp_typemaps.go != "zzz")
|
||||
if (csharp_typemaps.go != 'z')
|
||||
throw new Exception("go variable failed");
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue