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