chore: initial git load of code space
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
namespace Strata.SqlTools.Rules.Rule.Expression;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a numeric literal value in a rule expression.
|
||||
/// </summary>
|
||||
public class NumberLiteral : Literal<decimal>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref=" NumberLiteral"/> class.
|
||||
/// </summary>
|
||||
/// <param name="value">The numeric value.</param>
|
||||
public NumberLiteral(decimal value) : base(value) { }
|
||||
|
||||
/// <summary>
|
||||
/// Implicitly converts a <see cref=" NumberLiteral"/> to a decimal value.
|
||||
/// </summary>
|
||||
/// <param name="numberExp">The number expression to convert.</param>
|
||||
public static implicit operator decimal(NumberLiteral numberExp) => numberExp.Value;
|
||||
}
|
||||
Reference in New Issue
Block a user