Example #1
0
        }         // proc SumArray

        /// <summary>Vergleicht die zwei Schranken miteinander.</summary>
        /// <param name="o">Vergleichswert</param>
        /// <returns><c>true</c>, wenn die Schranken exakt gleich sind.</returns>
        public bool CompareTo(ref CronBound o)
        {
            return(Procs.CompareBytes(days, o.days) &&
                   Procs.CompareBytes(weekDays, o.weekDays) &&
                   Procs.CompareBytes(hours, o.hours) &&
                   Procs.CompareBytes(minutes, o.minutes));
        }         // func CompareTo
Example #2
0
            }             // proc Dispose

            public override bool Equals(IIdentity other)
            {
                if (other is HttpListenerBasicIdentity basicIdentity)
                {
                    if (String.Compare(userName, other.Name, StringComparison.OrdinalIgnoreCase) != 0)
                    {
                        return(false);
                    }
                    return(ProcsDE.PasswordCompare(basicIdentity.Password, passwordHash));
                }
                else if (other is PpsBasicIdentity checkSql)
                {
                    if (String.Compare(userName, checkSql.Name, StringComparison.OrdinalIgnoreCase) != 0)
                    {
                        return(false);
                    }
                    return(Procs.CompareBytes(passwordHash, checkSql.passwordHash));
                }
                else
                {
                    return(false);
                }
            }             // func Equals