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