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); }
public void SetValue(object value) { this.value = FlowNode.ChangeType(value, valueType); }