I’m trying to convert code from Delphi to .Net. I’m stuck on one line:
//Delphi code
ss := Copy(ss, Length(ss), 1) + Copy(ss, 1,Length(ss) - 1);
'vb.net code
ss = ss.Substring(0, ss.Length - 1) + ss.Substring(1, ss.Length - 1)
Delphi combines the two substrings, while .Net just concatenate them like a copy.
You made the same mistake as in your previous question. You need
All you need to do to convert this type of code is account for the 1-based vs 0-based indexing difference between Delphi strings and .net strings.