It is my understanding that C# and VB have been made essentially 98% compatible, maybe 100% compatible with each other... But one issue sticks out with me...
If a Boolean value or expression returning True coerces to -1 in VB and +1 in C#, how does this work??
Ive tested VB.Net and confirmed that
returns -1, as it did in VB 6.0...
But I dont have VS.Net, so I cant test it in C... Can someone let me know how C#.Net handles this? And how any discrepancy is rectified??
Thanks in advance
,
Mike
If a Boolean value or expression returning True coerces to -1 in VB and +1 in C#, how does this work??
Ive tested VB.Net and confirmed that
Code:
MessageBox.Show(CLng(True).ToString)
But I dont have VS.Net, so I cant test it in C... Can someone let me know how C#.Net handles this? And how any discrepancy is rectified??
Thanks in advance
![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Mike