예제 #1
0
        public object GetValue(ExecutionContext executionContext, Type targetType)
        {
            object value;

            if (linkOutput != null)
            {
                value = linkOutput.GetValue(executionContext, targetType);
            }
            else
            {
                if (defaultValue != null)
                {
                    value = defaultValue.GetDefaultValue(executionContext, targetType);
                }
                else
                {
                    value = this.value;
                }
            }
            if (targetType == null)
            {
                targetType = valueType;
            }
            value = FlowNode.ChangeType(value, targetType);
            return(value);
        }
예제 #2
0
 public void SetValue(object value)
 {
     this.value = FlowNode.ChangeType(value, valueType);
 }