コード例 #1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="HourMin1">A HourMin.</param>
        /// <param name="HourMin2">Another HourMin.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(HourMin HourMin1, HourMin HourMin2)
        {
            if ((Object)HourMin1 == null)
            {
                throw new ArgumentNullException("The given HourMin1 must not be null!");
            }

            return(HourMin1.CompareTo(HourMin2) > 0);
        }
コード例 #2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="HourMin1">A HourMin.</param>
        /// <param name="HourMin2">Another HourMin.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(HourMin HourMin1,
                                         HourMin HourMin2)

        => HourMin1.CompareTo(HourMin2) > 0;