static string GetStr(GrhData grhData, string msg) { var s = string.Format("Exception caused by GrhData `{0}`.", grhData != null ? grhData.ToString() : "[NULL]"); if (!string.IsNullOrEmpty(s)) s += " " + msg; return s; }
static string GetStr(GrhData grhData, string msg) { var s = string.Format("Exception caused by GrhData `{0}`.", grhData != null ? grhData.ToString() : "[NULL]"); if (!string.IsNullOrEmpty(s)) { s += " " + msg; } return(s); }
/// <summary> /// Returns a <see cref="System.String"/> that represents this instance. /// </summary> /// <returns> /// A <see cref="System.String"/> that represents this instance. /// </returns> public override string ToString() { return("Grh: " + (GrhData != null ? GrhData.ToString() : "(No GrhData loaded)")); }