Esempio n. 1
0
 public bool Equals(DebugStackFrame other)
 {
     return(other != null &&
            FileName.Equals(other.FileName) &&
            LineNumber.Equals(other.LineNumber) &&
            Call.Equals(other.Call));
 }
        /// <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));
        }