public virtual bool CompareNotifyContext(object obj) { lock (m_syncRoot) { return(NotifyContext.Equals(obj)); } }
/// <summary> /// Compare an object to the notification context /// </summary> /// <remarks>This method is thread safe</remarks> /// <param name="obj">The object to compare</param> /// <returns>Indicating if the object and the notification context are the same</returns> public virtual bool CompareNotifyContext(object obj) { lock (m_syncRoot) { // Compare on the current state return(NotifyContext.Equals(obj)); } }
/// <summary> /// Compare an object to the notification context /// </summary> /// <remarks>This method is thread safe</remarks> /// <param name="obj">The object to compare</param> /// <returns>Indicating if the object and the notification context are the same</returns> public bool CompareNotifyContext(object obj) { lock (this) { // Compare on the current state return(NotifyContext.Equals(obj)); } }
/// <summary> /// Compare an object to the notification context. /// </summary> /// <param name="obj">the object to compare</param> /// <returns>indicating if the object and the notification context are the same</returns> public virtual bool CompareNotifyContext(object obj) { return(NotifyContext.Equals(obj)); }