/// <summary> /// Returns a value indicating whether two specified instances of OverlayWindow represent the same value. /// </summary> /// <param name="left">The first object to compare.</param> /// <param name="right">The second object to compare.</param> /// <returns> <see langword="true" /> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <see langword="false" />.</returns> public static bool Equals(OverlayWindow left, OverlayWindow right) { return(left?.Equals(right) == true); }
/// <summary> /// Returns a value indicating whether two specified instances of OverlayWindow represent the same value. /// </summary> /// <param name="value">An object to compare to this instance.</param> /// <returns><see langword="true" /> if <paramref name="value" /> is equal to this instance; otherwise, <see langword="false" />.</returns> public bool Equals(OverlayWindow value) { return(value != null && value.IsInitialized == IsInitialized && value.Handle == Handle); }