Esempio n. 1
0
 public bool Equals(IYearWeek other) {
     return GetHashCode().Equals(other.GetHashCode());
 }
Esempio n. 2
0
 public bool Equals(IYearWeek other)
 {
     return(GetHashCode().Equals(other.GetHashCode()));
 }
Esempio n. 3
0
        //public static bool operator ==(YearWeek a, YearWeek b)
        //{
        //    return Equals(a, b);
        //}
        //public static bool operator !=(YearWeek a, YearWeek b)
        //{
        //    return !Equals(a, b);
        //}
        //public static bool operator >(YearWeek a, YearWeek b)
        //{
        //    return a.CompareTo(b) > 0;
        //}
        //public static bool operator <(YearWeek a, YearWeek b)
        //{
        //    return a.CompareTo(b) < 0;
        //}
        //public static bool operator >=(YearWeek a, YearWeek b)
        //{
        //    return a.CompareTo(b) >= 0;
        //}
        //public static bool operator <=(YearWeek a, YearWeek b)
        //{
        //    return a.CompareTo(b) <= 0;
        //}

        public int CompareTo(IYearWeek other) {
            return GetHashCode().CompareTo(other.GetHashCode());
        }
Esempio n. 4
0
        //public static bool operator ==(YearWeek a, YearWeek b)
        //{
        //    return Equals(a, b);
        //}
        //public static bool operator !=(YearWeek a, YearWeek b)
        //{
        //    return !Equals(a, b);
        //}
        //public static bool operator >(YearWeek a, YearWeek b)
        //{
        //    return a.CompareTo(b) > 0;
        //}
        //public static bool operator <(YearWeek a, YearWeek b)
        //{
        //    return a.CompareTo(b) < 0;
        //}
        //public static bool operator >=(YearWeek a, YearWeek b)
        //{
        //    return a.CompareTo(b) >= 0;
        //}
        //public static bool operator <=(YearWeek a, YearWeek b)
        //{
        //    return a.CompareTo(b) <= 0;
        //}

        public int CompareTo(IYearWeek other)
        {
            return(GetHashCode().CompareTo(other.GetHashCode()));
        }