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

            return(TariffId1.CompareTo(TariffId2) > 0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="TariffId1">A charging tariff identification.</param>
        /// <param name="TariffId2">Another charging tariff identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(Tariff_Id TariffId1,
                                         Tariff_Id TariffId2)

        => TariffId1.CompareTo(TariffId2) > 0;