GUID


Node Information
Generates a new GUID each time it is requested.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Value OUT String MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Utilities
{
    [IsNode("GUID")]
    public class GUID : Node
    {
        Port val = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "Value");
        public GUID()
        {
            this.Name = "GUID";
            NodeType = KGraph.NodeType.Function;
            ReturnType = typeof(string);
            AddPort(val);
            Information = "Generates a new GUID each time it is requested.";
        }
        public override string Code()
        {
            return "Guid.NewGuid().ToString();";
        }
    }
}