This question is locked. New answers and comments are not allowed.
Hi there,
We recently used the Telerik code converter for some C# code (don't ask my why the original author did it this way, "clever" code like this can get you in trouble) - it's part of a convoluted loop, but here are the relevent 2 lines of code:
to VB.NET:
That didn't produce the expected results :-)
We recently used the Telerik code converter for some C# code (don't ask my why the original author did it this way, "clever" code like this can get you in trouble) - it's part of a convoluted loop, but here are the relevent 2 lines of code:
int
i = 1;
string
s = Convert.ToString(i++);
Dim
i
As
Integer
= 1
Dim
s
As
String
= Convert.ToString(System.Math.Max(System.Threading.Interlocked.Increment(i),i - 1))
That didn't produce the expected results :-)