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