ToCharList


Node Information
Converts string to a list of characters.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Text IN String ONE FALSE FALSE
Result OUT List<Char> MULTIPLE TRUE FALSE

Source
namespace Korduene.KGraph.Nodes.String
{
    [IsNode("ToCharList")]
    public class StringToCharList : Node
    {
        Port a = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Text");
        Port res = new Port(PortType.OUT, typeof(List<char>), AcceptsLinks.MULTIPLE, "Result");
        public StringToCharList()
        {
            this.Name = "ToCharList";
            AddPort(a);
            AddPort(res);
            res.Instructions = "init";
            Information = "Converts string to a list of characters.";
        }
        public override void UpdateResults()
        {
            res.Instructions = GetValue(a) + ".ToCharArray().ToList()";
        }
    }
}

</char>