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