public bool Equals(IYearWeek other) { return GetHashCode().Equals(other.GetHashCode()); }
public bool Equals(IYearWeek other) { return(GetHashCode().Equals(other.GetHashCode())); }
//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()); }
//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())); }