[C#] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
[ldk-java] / c_sharp / src / org / ldk / structs / NodeInfo.cs
index 2f1c0a226784783e6304d5c990ea18edc6f3815c..e7975e61df6602ce6908c99fb918f3b373a25f8c 100644 (file)
@@ -127,6 +127,17 @@ public class NodeInfo : CommonBase {
                return ret;
        }
 
+       /**
+        * Get the string representation of a NodeInfo object
+        */
+       public string to_str() {
+               long ret = bindings.NodeInfo_to_str(this.ptr);
+               GC.KeepAlive(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               string ret_conv = InternalUtils.decodeString(ret);
+               return ret_conv;
+       }
+
        /**
         * Serialize the NodeInfo object into a byte array which can be read by NodeInfo_read
         */