[C#] Update auto-generated files
[ldk-java] / c_sharp / src / org / ldk / structs / ChannelUsage.cs
index 53dfaa0d1c4de5b84023f8b7469da5afbbac9dc0..0da6b1e47fa20248f6aef9af1374a00a42b24ccc 100644 (file)
@@ -72,6 +72,7 @@ public class ChannelUsage : CommonBase {
                bindings.ChannelUsage_set_effective_capacity(this.ptr, val.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(val);
+               if (this != null) { this.ptrs_to.AddLast(val); };
        }
 
        /**
@@ -85,6 +86,7 @@ public class ChannelUsage : CommonBase {
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ChannelUsage ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUsage(null, ret); }
                if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(effective_capacity_arg); };
                return ret_hu_conv;
        }