public override string ToString() { StringBuilder sb = new StringBuilder(); if (Sender != null) { sb.AppendFormat("Sender:[{0}].\r\n", SupportClass.GetTypeName(Sender)); } sb.AppendFormat("Message:[{0}]\r\n", SupportClass.GetTypeName(Message)); if (Handler != null) { sb.AppendFormat("Observers:[{0}].\r\n", SupportClass.GetTypeName(Handler)) .AppendFormat("\tTarget:[{0}].\r\n", SupportClass.GetTypeName(Handler.Target)) .AppendFormat("\tMethod:[{0}].\r\n", Handler.Method.Name); } if (Error != null) { SupportClass.BuildErrorInfo(sb, Error); } return(sb.ToString()); }