We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6a0c6c commit 3dc0e5bCopy full SHA for 3dc0e5b
1 file changed
csharp/ToolGood.Algorithm/Operand.cs
@@ -29,12 +29,12 @@ public abstract class Operand
29
/// <summary>
30
/// One
31
/// </summary>
32
- public static readonly Operand One = Operand.Create(1m);
+ public static readonly Operand One;
33
34
35
/// Zero
36
37
- public static readonly Operand Zero = Operand.Create(0m);
+ public static readonly Operand Zero;
38
39
/// Null
40
@@ -48,6 +48,8 @@ static Operand()
48
{
49
for (int i = 0; i < IntCacheSize; i++)
50
IntCache[i] = new OperandInt(i - IntCacheOffset);
51
+ One = Operand.Create(1);
52
+ Zero = Operand.Create(0);
53
}
54
55
#region IsNull IsNumber IsText IsBoolean IsArray IsDate IsJson IsArrayJson IsError ErrorMsg
0 commit comments