YAMP.ContainerExpression.ToString C# (CSharp) Method

ToString() public method

Transforms the content into a string.
public ToString ( ) : String
return String
        public override String ToString()
        {
            if (_expressions != null)
            {
                if (_expressions.Length == 1 && _operator == null)
                {
                    return String.Format(" [ {0} ] ", _expressions[0]);
                }
                else if (_operator != null)
                {
                    if (_expressions.Length == 1)
                    {
                        return String.Format(" [ {0} {1} ] ", _expressions[0], _operator);
                    }
                    else if (_expressions.Length == 2)
                    {
                        return String.Format(" [ {0} {1} {2} ] ", _expressions[0], _operator, _expressions[1]);
                    }
                }
            }

            return String.Empty;
        }