Beispiel #1
0
        protected override void Definition()
        {
            base.Definition();


            key = ValueInput(keyType, nameof(key));
            key.SetDefaultValue(GetDefaultValue(keyType));
        }
        protected override void Definition()
        {
            name = ValueInput <string>("name", string.Empty);


            if (type.IsValueType)
            {
                value = ValueInput(type, "value");
                value.SetDefaultValue(Activator.CreateInstance(type));
            }
            else
            {
                valueNull = ValueInput(type, "valueNull");
                valueNull.SetDefaultValue(null);
            }

            Func <Recursion, BinaryVariable> binaryVariable = getBinaryVariable => GetBinaryVariable();

            variable = ValueOutput <BinaryVariable>("variable", binaryVariable);
        }