Monday, February 17, 2020

manually reverse a string:

 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:

Exception handling -> "bubble up

Exception handling -> "bubble up" Exception handling (#1) try { ... // might fail ... } ca...