public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ModelItem modelItem = value as ModelItem;

            if (value != null)
            {
                InArgument <string> inArgument = modelItem.GetCurrentValue() as InArgument <string>;

                if (inArgument != null)
                {
                    Activity <string>    expression   = inArgument.Expression;
                    CSharpValue <string> csexpression = expression as CSharpValue <string>;
                    Literal <string>     literal      = expression as Literal <string>;

                    if (literal != null)
                    {
                        return(literal.Value);
                    }
                    else if (csexpression != null)
                    {
                        return(csexpression.ExpressionText);
                    }
                }
            }
            return(null);
        }
 // BUG 9304 - 2013.05.08 - TWR - Added this constructor for testing purposes
 protected DsfFlowNodeActivity(string displayName, IDebugDispatcher debugDispatcher, bool isAsync = false)
     : base(displayName, debugDispatcher, isAsync)
 {
     _expression = new CSharpValue <TResult>();
 }