[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / Bolt12InvoiceFeatures.cs
index 517d44ae3bcf16e677e1ce5dfe4a5aba3ba50dc8..98b72e127b5b53f53b83ffd9f8ee16a26e5abd14 100644 (file)
@@ -50,6 +50,18 @@ public class Bolt12InvoiceFeatures : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the Bolt12InvoiceFeatures.
+        */
+       public long hash() {
+               long ret = bindings.Bolt12InvoiceFeatures_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Create a blank Features with no features set
         */