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

Popular posts from this blog

mysql - How to insert just year and month into date field? -

c# - Detect changes in ObjectSet in Entity Framework 4.0? -