diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2019-03-30 12:18:40 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2019-04-08 19:20:45 +0100 |
commit | 06462acdf9b7738a19dce5579d90b1c91b3f9cfb (patch) | |
tree | 7b7d073067c66a7447af9704623256a64974ff24 /Doc | |
parent | 33f8c36813f731d54f6220b089248311d3134279 (diff) | |
download | swig-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.html | 4 |
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 -> cscode javaimports -> csimports javabody -> csbody javafinalize -> csfinalize -javadestruct -> csdestruct -javadestruct_derived -> csdestruct_derived +javadestruct -> csdisposing and csdispose +javadestruct_derived -> csdisposing_derived and csdispose_derived javainterfacecode -> csinterfacecode </pre></div> |