Exemplo n.º 1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="ChargingReservationId1">A ChargingReservationId.</param>
        /// <param name="ChargingReservationId2">Another ChargingReservationId.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(ChargingReservation_Id ChargingReservationId1, ChargingReservation_Id ChargingReservationId2)
        {
            if ((Object)ChargingReservationId1 == null)
            {
                throw new ArgumentNullException("The given ChargingReservationId1 must not be null!");
            }

            return(ChargingReservationId1.CompareTo(ChargingReservationId2) > 0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="ChargingReservationId1">A ChargingReservationId.</param>
        /// <param name="ChargingReservationId2">Another ChargingReservationId.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(ChargingReservation_Id ChargingReservationId1, ChargingReservation_Id ChargingReservationId2)
        {
            // If both are null, or both are same instance, return true.
            if (Object.ReferenceEquals(ChargingReservationId1, ChargingReservationId2))
            {
                return(true);
            }

            // If one is null, but not both, return false.
            if (((Object)ChargingReservationId1 == null) || ((Object)ChargingReservationId2 == null))
            {
                return(false);
            }

            return(ChargingReservationId1.Equals(ChargingReservationId2));
        }