Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NullCheckUnaryOperator.cs
1namespace Waher.Script.Model
2{
6 public abstract class NullCheckUnaryOperator : UnaryOperator
7 {
11 protected readonly bool nullCheck;
12
23 {
24 this.nullCheck = NullCheck;
25 }
26
30 public bool NullCheck => this.nullCheck;
31
33 public override bool Equals(object obj)
34 {
35 return obj is NullCheckUnaryOperator O &&
36 this.nullCheck.Equals(O.nullCheck) &&
37 base.Equals(obj);
38 }
39
41 public override int GetHashCode()
42 {
43 int Result = base.GetHashCode();
44 Result ^= Result << 5 ^ this.nullCheck.GetHashCode();
45 return Result;
46 }
47
48 }
49}
Class managing a script expression.
Definition: Expression.cs:39
Base class for all unary operators performing operand null checks.
bool NullCheck
If null check is to be used.
NullCheckUnaryOperator(ScriptNode Operand, bool NullCheck, int Start, int Length, Expression Expression)
Base class for all unary 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 all unary operators.