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