operator keyword - Logical instructions for CIL -
how can use logical operators and, or, not in cil ?
there no cil opcodes operators; need implement them via conditional branching instead. instance, a && b
same a ? b : false
, , a || b
same a ? true : b
, both of relatively easy implement in il (e.g. can use brtrue
opcode conditional jump based on value of a
).
Comments
Post a Comment