public static string printEvent(Event evt) { Message msg; if (evt.Type == Event.MSG) { msg = (Message)evt.Arg; if (msg != null) { if (msg.Length > 0) { return(printMessage(msg)); } else { return(msg.printObjectHeaders()); } } } return(evt.ToString()); }
public static string printEvent(Event evt) { Message msg; if (evt.Type == Event.MSG) { msg = (Message) evt.Arg; if (msg != null) { if (msg.Length > 0) return printMessage(msg); else return msg.printObjectHeaders(); } } return evt.ToString(); }