Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NullCheckUnaryScalarOperator.cs
1using System;
2
3namespace Waher.Script.Model
4{
9 {
13 protected readonly bool nullCheck;
14
25 {
26 this.nullCheck = NullCheck;
27 }
28
30 public override bool Equals(object obj)
31 {
32 return obj is NullCheckUnaryScalarOperator O &&
33 this.nullCheck.Equals(O.nullCheck) &&
34 base.Equals(obj);
35 }
36
38 public override int GetHashCode()
39 {
40 int Result = base.GetHashCode();
41 Result ^= Result << 5 ^ this.nullCheck.GetHashCode();
42 return Result;
43 }
44
45 }
46}
Class managing a script expression.
Definition: Expression.cs:39
Base class for all unary scalar operators performing operand null checks.
NullCheckUnaryScalarOperator(ScriptNode Operand, bool NullCheck, int Start, int Length, Expression Expression)
Base class for all unary scalar operators performing operand null checks.
readonly bool nullCheck
If null should be returned if operand is null.
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92
Base class for unary scalar operators.