/// <summary>将参数中值与此实例做比较,实例大返回正数,参数大返回负数</summary> /// <param name="aDate">用来做比较的对象</param> /// <returns>实例大返回正数,参数大返回负数</returns> public int Compare(FinaceDate aDate) { return (date.Year - aDate.Year) * 12 + date.Month - aDate.Month; }
/// <summary>将参数中值与此实例做比较,实例大返回正数,参数大返回负数</summary> /// <param name="aDate">用来做比较的对象</param> /// <returns>实例大返回正数,参数大返回负数</returns> public int Compare(FinaceDate aDate) { return((date.Year - aDate.Year) * 12 + date.Month - aDate.Month); }
/// <summary>判断参数中的实例和当前实例是否相等</summary> /// <param name="aDate"></param> /// <returns></returns> public bool Equal(FinaceDate aDate) { return (date.Year == aDate.Year && date.Month == aDate.Month); }
/// <summary>判断参数中的实例和当前实例是否相等</summary> /// <param name="aDate"></param> /// <returns></returns> public bool Equal(FinaceDate aDate) { return(date.Year == aDate.Year && date.Month == aDate.Month); }