Esempio n. 1
0
        /// <summary>
        /// Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        public override int GetHashCode()
        {
            int hash = 0x4043ed48;

            hash = (hash * -1521134295) + OccursOn.GetHashCode();
            hash = (hash * -1521134295) + DueTime.GetHashCode();
            return(hash);
        }
Esempio n. 2
0
 /// <summary>
 /// Returns a <see cref="System.String"/> that represents this instance.
 /// </summary>
 /// <returns>
 /// A <see cref="System.String"/> that represents this instance.
 /// </returns>
 public override string ToString()
 {
     return(string.Format("Scheduled on {0} in {1}"
                          , OccursOn.AsLocalTime().ToString("dd/MM/yyyy HH:mm:ss.fffffff")
                          , DueTime));
 }