N
Nick Z.
I do some logging like so:
Log.Error("The song was not found. Artist - " + artist + ", Title - " +
title + "\n" + exception.ToString());
Now I know that building strings in that way is innefficient, but using
the String builder seems too complicated for the taks.
StringBuilder b = new StringBuilder();
b.Append("The song was not found. Artist - ");
b.Append(artist);
b.Append(", Title - ");
b.Append(title);
b.Append("\n");
b.Append(exception.ToString());
Log.Error(b.ToString());
Yea this should be more efficient, but looking at this mess there just
*has* to be a better way, so what is it?
Thanks,
Nick Z.
Log.Error("The song was not found. Artist - " + artist + ", Title - " +
title + "\n" + exception.ToString());
Now I know that building strings in that way is innefficient, but using
the String builder seems too complicated for the taks.
StringBuilder b = new StringBuilder();
b.Append("The song was not found. Artist - ");
b.Append(artist);
b.Append(", Title - ");
b.Append(title);
b.Append("\n");
b.Append(exception.ToString());
Log.Error(b.ToString());
Yea this should be more efficient, but looking at this mess there just
*has* to be a better way, so what is it?
Thanks,
Nick Z.