Beispiel #1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="ChargingPoolId1">A charging pool identification.</param>
        /// <param name="ChargingPoolId2">Another charging pool identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(ChargingPool_Id ChargingPoolId1, ChargingPool_Id ChargingPoolId2)
        {
            if ((Object)ChargingPoolId1 == null)
            {
                throw new ArgumentNullException(nameof(ChargingPoolId1), "The given ChargingPoolId1 must not be null!");
            }

            return(ChargingPoolId1.CompareTo(ChargingPoolId2) > 0);
        }
Beispiel #2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="ChargingPoolId1">A charging pool identification.</param>
        /// <param name="ChargingPoolId2">Another charging pool identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(ChargingPool_Id ChargingPoolId1, ChargingPool_Id ChargingPoolId2)
        {
            // If both are null, or both are same instance, return true.
            if (ReferenceEquals(ChargingPoolId1, ChargingPoolId2))
            {
                return(true);
            }

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

            return(ChargingPoolId1.Equals(ChargingPoolId2));
        }
Beispiel #3
0
 /// <summary>
 /// Compares two instances of this object.
 /// </summary>
 /// <param name="ChargingPoolId1">A time zone identification.</param>
 /// <param name="ChargingPoolId2">Another time zone identification.</param>
 /// <returns>true|false</returns>
 public static Boolean operator >=(Time_Zone ChargingPoolId1, Time_Zone ChargingPoolId2)
 => ChargingPoolId1.CompareTo(ChargingPoolId2) >= 0;
Beispiel #4
0
 /// <summary>
 /// Compares two instances of this object.
 /// </summary>
 /// <param name="ChargingPoolId1">A time zone identification.</param>
 /// <param name="ChargingPoolId2">Another time zone identification.</param>
 /// <returns>true|false</returns>
 public static Boolean operator !=(Time_Zone ChargingPoolId1, Time_Zone ChargingPoolId2)
 => !ChargingPoolId1.Equals(ChargingPoolId2);
 /// <summary>
 /// Compares two instances of this object.
 /// </summary>
 /// <param name="ChargingPoolId1">A charging pool identification.</param>
 /// <param name="ChargingPoolId2">Another charging pool identification.</param>
 /// <returns>true|false</returns>
 public static Boolean operator >=(ChargingPool_Id ChargingPoolId1, ChargingPool_Id ChargingPoolId2)
 => ChargingPoolId1.CompareTo(ChargingPoolId2) >= 0;
 /// <summary>
 /// Compares two instances of this object.
 /// </summary>
 /// <param name="ChargingPoolId1">A charging pool identification.</param>
 /// <param name="ChargingPoolId2">Another charging pool identification.</param>
 /// <returns>true|false</returns>
 public static Boolean operator !=(ChargingPool_Id ChargingPoolId1, ChargingPool_Id ChargingPoolId2)
 => !ChargingPoolId1.Equals(ChargingPoolId2);