manually reverse a string:
more at siccolo blurbs
public static string ReverseStringManual(string ins)
{
StringBuilder outs = new StringBuilder(ins.Length);
for (int i = ins.Length; i > 0; i--) { outs.Append(ins[i - 1]); };
return outs.ToString();
}
more at siccolo blurbs
No comments:
Post a Comment