YAMP.StringExpression.ToCode C# (CSharp) Method

ToCode() public method

public ToCode ( ) : string
return string
        public override string ToCode()
        {
            if(IsLiteral)
                return "@\"" + value + '"';

            return '"' +
                     value.Replace("\t", "\\t")
                          .Replace("\n", "\\n")
                          .Replace("\\", "\\\\")
                          .Replace("\"", "\\\"")
                    + '"';
        }