예제 #1
0
        //=====================================================================

        /// <summary>
        /// Returns a value indicating whether two specified instances of RecurDateTime are equal
        /// </summary>
        /// <param name="r1">The first date/time to compare</param>
        /// <param name="r2">The second date/time to compare</param>
        /// <returns>Returns true if the date/times are equal, false if they are not</returns>
        public static bool Equals(RecurDateTime r1, RecurDateTime r2)
        {
            if ((object)r1 == null && (object)r2 == null)
            {
                return(true);
            }

            if ((object)r1 == null)
            {
                return(false);
            }

            return(r1.Equals(r2));
        }
예제 #2
0
        //=====================================================================

        /// <summary>
        /// Returns a value indicating whether two specified instances of RecurDateTime are equal
        /// </summary>
        /// <param name="r1">The first date/time to compare</param>
        /// <param name="r2">The second date/time to compare</param>
        /// <returns>Returns true if the date/times are equal, false if they are not</returns>
        public static bool Equals(RecurDateTime r1, RecurDateTime r2)
        {
            if((object)r1 == null && (object)r2 == null)
                return true;

            if((object)r1 == null)
                return false;

            return r1.Equals(r2);
        }