Hallo,
ich möchte den folgenden Vergleich in C# schreiben, weiss aber nicht wie.
Der Code sieht so in Delphi aus:
Delphi-Quelltext
1: 2: 3: 4:
| if ((state and csfframescan) = csfframescan) then m_FrameScan := true... |
Wenn ich das so in C# übernehme bekomm ich immer den Fehler
"Error 25 Operator '&&' cannot be applied to operands of type 'int' and 'int' "
C#-Quelltext
1: 2: 3: 4:
| int state,csfframescan;
if ( ( state && csfframescan) == csfframescan) {... |
Wie muß ich diesen "Byte" Vergleich in C# machen?
Danke!