public void AppendCodeDebugInfo(TextWriter writer) { writer.Write("statement "); writer.Write(Convert.ToString(StatementNumber)); writer.Write(" name "); writer.Write(StatementName.Replace("\\", "")); }
/// <summary> /// Determines if the current object is equal to the <paramref name="obj"/> /// </summary> /// <param name="obj">The object to compare</param> /// <returns>true, if the two instances are equal</returns> public override bool Equals(object obj) { if (!(obj is ProfilerEvent)) { return(false); } ProfilerEvent other = (ProfilerEvent)obj; return(Type.Equals(other.Type) && SessionId.Equals(other.SessionId) && ObjectType.Equals(other.ObjectType) && ObjectId.Equals(other.ObjectId) && LineNumber.Equals(other.LineNumber) && StatementName.Equals(other.StatementName) && TimeStampRelativeMSec.Equals(other.TimeStampRelativeMSec)); }
/// <summary> /// Generates a hash code for the object. /// </summary> /// <returns>A hash code</returns> public override int GetHashCode() { return(Type.GetHashCode() ^ SessionId.GetHashCode() ^ ObjectId.GetHashCode() ^ ObjectType.GetHashCode() ^ StatementName.GetHashCode() ^ LineNumber.GetHashCode() ^ TimeStampRelativeMSec.GetHashCode()); }