コード例 #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);
        }
コード例 #2
0
ファイル: Time_Zone.cs プロジェクト: lanicon/Styx
 /// <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;
コード例 #3
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.CompareTo(ChargingPoolId2) >= 0;