ToUpper


Node Information
Converts string to uppercase.
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 String MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.String
{
    [IsNode("ToUpper")]
    public class StringToUpper : Node
    {
        Port a = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Text");
        Port res = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "Result");
        public StringToUpper()
        {
            Name = "ToUpper";
            AddPort(a);
            AddPort(res);
            res.Instructions = "init";
            Information = "Converts string to uppercase.";
        }
        public override void UpdateResults()
        {
            res.Instructions = GetValue(a) + ".ToUpper()";
        }
    }
}