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