コード例 #1
0
        public bool VisitExprByteArrayLiteral(ExprByteArrayLiteral expr, TCtx arg)
        {
            var res = this.Visit(expr, "ByteArrayLiteral", arg, out var argOut);

            this.VisitPlainProperty("Value", expr.Value, argOut);
            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
コード例 #2
0
ファイル: SqlBuilderBase.cs プロジェクト: 0x1000000/SqExpress
        public bool VisitExprByteArrayLiteral(ExprByteArrayLiteral byteArrayLiteral, IExpr?parent)
        {
            if (byteArrayLiteral.Value == null || byteArrayLiteral.Value.Count < 1)
            {
                this.AppendNull();
            }
            else
            {
                this.AppendByteArrayLiteralPrefix();
                for (int i = 0; i < byteArrayLiteral.Value.Count; i++)
                {
                    this.Builder.AppendFormat("{0:x2}", byteArrayLiteral.Value[i]);
                }
                this.AppendByteArrayLiteralSuffix();
            }

            return(true);
        }
コード例 #3
0
 public static ExprByteArrayLiteral WithValue(this ExprByteArrayLiteral original, IReadOnlyList <Byte>?newValue)
 => new ExprByteArrayLiteral(value: newValue);
コード例 #4
0
 public TRes VisitExprByteArrayLiteral(ExprByteArrayLiteral byteArrayLiteral, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx)
 {
     return(ctx.ValueVisitor.VisitByteArray(ctx.Ctx, byteArrayLiteral.Value == null, byteArrayLiteral.Value?.Count, false));
 }