c# python

  1. ulaho

    How to write this in c# ?

    I have a function like this which would work in python: xtime = lambda a: (((a << 1) ^ 0x1B) & 0xFF) if (a & 0x80) else (a << 1) How to implement same idea in c# ? I get errors, if I write this like that: int xtime(int x) { if (x & 0x80) { return (((x << 1) ^ 0x1B) &...
Back
Top