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