/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="DashboardId1">A Dashboard identification.</param> /// <param name="DashboardId2">Another Dashboard identification.</param> /// <returns>true|false</returns> public static Boolean operator >(Dashboard DashboardId1, Dashboard DashboardId2) { if ((Object)DashboardId1 == null) { throw new ArgumentNullException(nameof(DashboardId1), "The given DashboardId1 must not be null!"); } return(DashboardId1.CompareTo(DashboardId2) > 0); }
/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="DashboardId1">A Dashboard identification.</param> /// <param name="DashboardId2">Another Dashboard identification.</param> /// <returns>true|false</returns> public static Boolean operator ==(Dashboard DashboardId1, Dashboard DashboardId2) { // If both are null, or both are same instance, return true. if (Object.ReferenceEquals(DashboardId1, DashboardId2)) { return(true); } // If one is null, but not both, return false. if (((Object)DashboardId1 == null) || ((Object)DashboardId2 == null)) { return(false); } return(DashboardId1.Equals(DashboardId2)); }