/// <summary> /// Returns true if MsalAuthenticationResult instances are equal /// </summary> /// <param name="other">Instance of MsalAuthenticationResult to be compared</param> /// <returns>Boolean</returns> public bool Equals(MsalAuthenticationResult other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((IsCanceled == other.IsCanceled || IsCanceled != null && IsCanceled.Equals(other.IsCanceled)) && (IsError == other.IsError || IsError != null && IsError.Equals(other.IsError)) && (ErrorCode == other.ErrorCode || ErrorCode != null && ErrorCode.Equals(other.ErrorCode)) && (AccessToken == other.AccessToken || AccessToken != null && AccessToken.Equals(other.AccessToken)) && (IdToken == other.IdToken || IdToken != null && IdToken.Equals(other.IdToken)) && (Scopes == other.Scopes || Scopes != null && Scopes.Equals(other.Scopes)) && (ExpiresOn == other.ExpiresOn || ExpiresOn != null && ExpiresOn.Equals(other.ExpiresOn))); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns>true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false.</returns> public bool Equals(PointerPoint other) { return(EventType == other.EventType && DeviceType == other.DeviceType && PointerId == other.PointerId && Position.Equals(other.Position) && Timestamp == other.Timestamp && KeyModifiers == other.KeyModifiers && ContactRect.Equals(other.ContactRect) && IsBarrelButtonPressed.Equals(other.IsBarrelButtonPressed) && IsCanceled.Equals(other.IsCanceled) && IsEraser.Equals(other.IsEraser) && IsHorizontalMouseWheel.Equals(other.IsHorizontalMouseWheel) && IsInRange.Equals(other.IsInRange) && IsInverted.Equals(other.IsInverted) && IsLeftButtonPressed.Equals(other.IsLeftButtonPressed) && IsMiddleButtonPressed.Equals(other.IsMiddleButtonPressed) && IsRightButtonPressed.Equals(other.IsRightButtonPressed) && IsXButton1Pressed.Equals(other.IsXButton1Pressed) && IsXButton2Pressed.Equals(other.IsXButton2Pressed) && IsPrimary.Equals(other.IsPrimary) && MouseWheelDelta == other.MouseWheelDelta && Orientation.Equals(other.Orientation) && TouchConfidence.Equals(other.TouchConfidence) && Twist.Equals(other.Twist) && XTilt.Equals(other.XTilt) && YTilt.Equals(other.YTilt) && PointerUpdateKind == other.PointerUpdateKind); }