freeswitch_wrap.cxx:
swig -I../../../include -v -O -c++ -csharp -namespace FreeSWITCH.Native -dllimport mod_managed -DSWIG_CSHARP_NO_STRING_HELPER freeswitch.i
rm -f ./managed/swig.cs
+ patch -s -p0 -i managed/hack.diff
cat *.cs > ./managed/swig.cs
rm -f *.cs
--- /dev/null
+--- switch_event.cs.old 2025-06-18 14:42:04.451534270 +0000
++++ switch_event.cs 2025-06-18 14:43:13.731741625 +0000
+@@ -40,7 +40,7 @@
+ Dispose(false);
+ }
+
+- public void Dispose() {
++ public virtual void Dispose() {
+ Dispose(true);
+ global::System.GC.SuppressFinalize(this);
+ }