Fixed XML for expression documentation

This commit is contained in:
lahma
2009-07-27 20:28:48 +00:00
parent 2e2e60b26c
commit f46b755b99

View File

@@ -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 &amp; 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>