public override int GetHashCode() { int hash = 1; if (Msgtxt.Length != 0) { hash ^= Msgtxt.GetHashCode(); } if (Source != 0) { hash ^= Source.GetHashCode(); } if (Color.Length != 0) { hash ^= Color.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ErrorCode != 0) { hash ^= ErrorCode.GetHashCode(); } if (Msgtxt.Length != 0) { hash ^= Msgtxt.GetHashCode(); } if (NextOperate != 0) { hash ^= NextOperate.GetHashCode(); } return(hash); }
/// <summary>Parse accepts an XmlNode and parses values</summary> public void Parse(XmlNode xNode) { XmlNode xResultNode = null; string strTmp = null; try { xResultNode = xNode.SelectSingleNode(TAG_SYSLOG_ID); strTmp = xResultNode.InnerText; SyslogID = (long)Convert.ToInt32(strTmp); } catch { } try { xResultNode = xNode.SelectSingleNode(TAG_INTERACTION_ID); InteractionID = (long)Convert.ToInt32(xResultNode.InnerText); } catch { InteractionID = 0; } try { xResultNode = xNode.SelectSingleNode(TAG_BEGIN_DATE_CREATED); BeginDateCreated = DateTime.Parse(xResultNode.InnerText); } catch { } try { xResultNode = xNode.SelectSingleNode(TAG_END_DATE_CREATED); EndDateCreated = DateTime.Parse(xResultNode.InnerText); } catch { } try { xResultNode = xNode.SelectSingleNode(TAG_BEGIN_DATE_MODIFIED); BeginDateModified = DateTime.Parse(xResultNode.InnerText); } catch { } try { xResultNode = xNode.SelectSingleNode(TAG_END_DATE_MODIFIED); EndDateModified = DateTime.Parse(xResultNode.InnerText); } catch { } try { xResultNode = xNode.SelectSingleNode(TAG_MSGSOURCE); Msgsource = xResultNode.InnerText; if (Msgsource.Trim().Length == 0) { Msgsource = null; } } catch { Msgsource = null; } try { xResultNode = xNode.SelectSingleNode(TAG_MSGACTION); Msgaction = xResultNode.InnerText; if (Msgaction.Trim().Length == 0) { Msgaction = null; } } catch { Msgaction = null; } try { xResultNode = xNode.SelectSingleNode(TAG_MSGTXT); Msgtxt = xResultNode.InnerText; if (Msgtxt.Trim().Length == 0) { Msgtxt = null; } } catch { Msgtxt = null; } }