diff --git a/CHANGES.current b/CHANGES.current index 118f112de..53ec34e54 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -5,6 +5,11 @@ See the RELEASENOTES file for a summary of changes in each release. Version 3.0.11 (in progress) ============================ +2016-12-24: wsfulton + [C#] Add %feature("csdirectordelegatemodifiers") to enable customization + of the delegate access modifiers generated in director classes. + Fixes issue https://github.com/swig/swig/issues/748 + 2016-12-23: wsfulton [Python] Fix builtin "python:slot" feature failing for tp_hash when using hashfunc closure with a "Wrong type for hash function" for Python 2. diff --git a/Doc/Manual/CSharp.html b/Doc/Manual/CSharp.html index 82f085101..2707cb4a6 100644 --- a/Doc/Manual/CSharp.html +++ b/Doc/Manual/CSharp.html @@ -1695,6 +1695,31 @@ void SwigDirector_Base::BaseBoolMethod(Base const &b, bool flag) { +
+The delegates from the above example are public by default: +
+ ++ public delegate uint SwigDelegateBase_0(uint x); + public delegate void SwigDelegateBase_1(global::System.IntPtr b, bool flag); ++
+These can be changed if desired via the csdirectordelegatemodifiers +%feature directive. +For example, using %feature("csdirectordelegatemodifiers") "internal" +before SWIG parses the Base class will change all the delegates to internal: +
+ ++ internal delegate uint SwigDelegateBase_0(uint x); + internal delegate void SwigDelegateBase_1(global::System.IntPtr b, bool flag); ++