Fixed XML for expression documentation
This commit is contained in:
@@ -379,7 +379,7 @@ bool falseValue = (bool) ExpressionEvaluator.GetValue(ieee, expression);</progra
|
||||
<emphasis>and</emphasis>, <emphasis>or</emphasis>, <emphasis>xor</emphasis> and <emphasis>not</emphasis>. Their use is demonstrated below.
|
||||
Note, that the logical and bitwise operators are the same and their interpretation depends if you pass in integral values or boolean values.
|
||||
<programlisting language="csharp">// AND
|
||||
int result = (int) ExpressionEvaluator.GetValue(null, "1 and 3"); // 1 & 3
|
||||
int result = (int) ExpressionEvaluator.GetValue(null, "1 and 3"); // 1 & 3
|
||||
|
||||
// OR
|
||||
int result = (int) ExpressionEvaluator.GetValue(null, "1 or 3"); // 1 | 3
|
||||
@@ -389,6 +389,7 @@ int result = (int) ExpressionEvaluator.GetValue(null, "1 xor 3"); // 1 ^ 3
|
||||
|
||||
// NOT
|
||||
int result = (int) ExpressionEvaluator.GetValue(null, "!1"); // ~1
|
||||
</programlisting>
|
||||
</para>
|
||||
</sect3>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user