S
Stefano Galluzzo
I have a problem. I want do a binary confront.
I have a Variable
1: int visibilityelements;
2: visibilityelements = 2;
if (visibilityelements & 2) {
...
}
if (visibilityelements & 4) {
...
}
if (visibilityelements & 8) {
...
}
if (visibilityelements & 16) {
...
}
The Visual Studio on if write me "Cannot implicitly convert type 'int' to
'bool'" for (visibilityelements & 2)
Anyone can help me, please?
Thanks
Stefano
I have a Variable
1: int visibilityelements;
2: visibilityelements = 2;
if (visibilityelements & 2) {
...
}
if (visibilityelements & 4) {
...
}
if (visibilityelements & 8) {
...
}
if (visibilityelements & 16) {
...
}
The Visual Studio on if write me "Cannot implicitly convert type 'int' to
'bool'" for (visibilityelements & 2)
Anyone can help me, please?
Thanks
Stefano