You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var exponentValue = = context.Eval("2^3"); // return 8;
78
63
79
64
var newExlusiveOrValue = = context.Eval("2^|3"); // return 1;
80
-
```
81
-
82
-
### Discussion
83
-
A new operator '^|' is available for the bitwise exclusive-OR operator.
65
+
{% endhighlight %}
84
66
85
67
## Clone
86
-
### Problem
87
-
You want to make a shallow copy of the current EvalContext
68
+
Create a new a shallow copy of the current EvalContext
88
69
89
-
### Solution
90
-
Use the **Clone** method.
70
+
> Cloning the EvalContext can be useful to copy all options including all types already registered to use it to change only what's required for the expression to evaluate.
91
71
92
72
### Example
93
-
```csharp
73
+
{% highlight csharp %}
94
74
// using Z.Expressions; // Don't forget to include this.
95
75
var context = EvalManager.DefaultContext.Clone();
96
-
```
97
-
98
-
### Discussion
99
-
Cloning the EvalContext can be useful to copy all options including all types already registered to use it to change only what's required for the expression to evaluate.
0 commit comments