public static SqlNumberLiteral Create(Number64 number64) { SqlNumberLiteral sqlNumberLiteral; if (number64.IsDouble) { if (!SqlNumberLiteral.FrequentDoubles.TryGetValue(Number64.ToDouble(number64), out sqlNumberLiteral)) { sqlNumberLiteral = new SqlNumberLiteral(number64); } } else { if (!SqlNumberLiteral.FrequentLongs.TryGetValue(Number64.ToLong(number64), out sqlNumberLiteral)) { sqlNumberLiteral = new SqlNumberLiteral(number64); } } return(sqlNumberLiteral); }
private SqlNumberLiteral(Number64 value) : base(SqlObjectKind.NumberLiteral) { this.Value = value; }