Ejemplo n.º 1
0
        public override void Write(ExpressionWriter writer)
        {
            // due to issue: https://github.com/Azure/autorest/issues/975,
            // date time offsets must be explicitly escaped before being passed to the filter

            string datestring         = this.DateTime.ToString("O");
            var    escaped_datestring = System.Uri.EscapeDataString(datestring);

            writer.Append(string.Format("datetimeoffset'{0}'", escaped_datestring));
        }
        public string ToFilterString()
        {
            var expr_and = ToExpression();

            var writer = new ExpressionWriter();

            writer.Append(expr_and);
            string text = writer.ToString();

            return(text);
        }
 public override void Write(ExpressionWriter writer)
 {
     writer.Append("(");
     writer.Append(this.LeftValue);
     writer.Append(" ");
     writer.Append(op);
     writer.Append(" ");
     writer.Append(this.RightValue);
     writer.Append(")");
 }
Ejemplo n.º 4
0
 public override void Write(ExpressionWriter writer)
 {
     writer.Append("(not");
     writer.Append(this.Expression);
     writer.Append(")");
 }
Ejemplo n.º 5
0
 public override void Write(ExpressionWriter writer)
 {
     writer.Append("null");
 }
Ejemplo n.º 6
0
 public override void Write(ExpressionWriter writer)
 {
     writer.Append(this.Name);
 }
 public override void Write(ExpressionWriter writer)
 {
     writer.Append(this.Integer.ToString());
 }
Ejemplo n.º 8
0
        public override void Write(ExpressionWriter writer)
        {
            string s = string.Format("'{0}'", this.Content);

            writer.Append(s);
        }