コード例 #1
0
ファイル: YearWeek.cs プロジェクト: debop/NFramework
 public bool Equals(IYearWeek other) {
     return GetHashCode().Equals(other.GetHashCode());
 }
コード例 #2
0
 public bool Equals(IYearWeek other)
 {
     return(GetHashCode().Equals(other.GetHashCode()));
 }
コード例 #3
0
ファイル: YearWeek.cs プロジェクト: debop/NFramework
        //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());
        }
コード例 #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()));
        }