namespace utility
{
using System;
///
/// An interface for a type to represent dates.
///
interface Date: IComparable
{
///
///
/// A property for accessing the Year part of the target date.
///
///
int Year
{
get; set;
}
///
///
/// A property for accessing the Month part of the target date.
///
///
int Month
{
get; set;
}
///
///
/// A property for accessing the Day part of the target date.
///
///
int Day
{
get; set;
}
///
/// A method for testing the equality of the values of
/// the target date
/// and the date .
///
///
/// The object with which to compare the target date.
///
///
/// Returns true if and only if the dates are the same.
///
bool Equals(object pObject);
///
/// A method for finding the hashcode of a date.
///
///
/// Returns the hashcode.
///
int GetHashCode();
///
/// A method for providing a textual representation of a date.
///
///
/// Returns a giving the textual representation.
///
string ToString();
}
}