aboutsummaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2019-03-30 12:18:40 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2019-04-08 19:20:45 +0100
commit06462acdf9b7738a19dce5579d90b1c91b3f9cfb (patch)
tree7b7d073067c66a7447af9704623256a64974ff24 /Doc
parent33f8c36813f731d54f6220b089248311d3134279 (diff)
downloadswig-06462acdf9b7738a19dce5579d90b1c91b3f9cfb.tar.gz
Fix C# CA1063 warning by implementing the recommended Dispose methods.
Previously just the Dispose() method was generated. Now the Dispose() and Dispose(bool disposing) methods are generated. Changes are required if custom "csfinalize", "csdestruct" or "csdestruct_derived" typemaps are being used. Details in #421 on Github. SWIG will error out if one of the "csfinalize, "csdestruct" or "csdestruct_derived" typemaps are found. Example error message: foo.h:60: Error: A deprecated csfinalize typemap was found for Foo, please remove it and replace all csdestruct, csdestruct_derived and csfinalize typemaps by the csdispose, csdispose_derived, csdisposing and csdisposing_derived typemaps. Closes #421
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Manual/CSharp.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/Manual/CSharp.html b/Doc/Manual/CSharp.html
index d485a9714..0526766b5 100644
--- a/Doc/Manual/CSharp.html
+++ b/Doc/Manual/CSharp.html
@@ -232,8 +232,8 @@ javacode -&gt; cscode
javaimports -&gt; csimports
javabody -&gt; csbody
javafinalize -&gt; csfinalize
-javadestruct -&gt; csdestruct
-javadestruct_derived -&gt; csdestruct_derived
+javadestruct -&gt; csdisposing and csdispose
+javadestruct_derived -&gt; csdisposing_derived and csdispose_derived
javainterfacecode -&gt; csinterfacecode
</pre></div>