sbRet.Append( expr, pos++, 1 );
Now, if I were to change that to VB, I'd write:sbRet.Append( expr, pos+1, 1 )(I don't know if VB supports the ++, which simply means to add 1)
loStringBuilder.Append(tcSearchIn, System.Math.Min(System.Threading.Interlocked.Increment(lnLocation), lnLocation - 1), 1)If you've simply changed the variables from your original post (and that's why it looks so different), then I would think the following, much simpler code, would work just fine:
loStringBuilder.Append(tcSearchIn, lnLocation + 1, 1)Will that work for you?