ToUpper


Node Information
Converts character to uppercase.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
IN Char ONE FALSE FALSE
Result OUT Char MULTIPLE FALSE FALSE

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