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