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