You can call CopyTo :
char[] output = new char[a.Length + b.Length]; a.CopyTo(0, output, 0, a.Length); b.CopyTo(0, output, a.Length, b.Length); return new String(output);
If they donβt like it, call .ToCharArray().CopyTo(...) .
You can also fool:
return String.Join("", new [] { a, b });
return String.Format("{0}{1}", a, b);
var writer = new StringWriter(); writer.Write(a); writer.Write(b); return writer.ToString();
SLaks source share