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