i have two interfaces IAppointment and IAppointments : IList<IAppointment>
in the second class i have 3 members
public interface IAppointments : IList<IAppointment>
{
bool Load();
bool Save();
IEnumerable<IAppointment> GetAppointmentsOnDate(DateTime date);
}
Of which i can only implement the first 2 in the class Appointments and i get errors with whatever method i tried for the 3rd one and i get the same 14 errors always (about "Appointments does not implement interface member IAppointment.GetEnumerator() , .Count , .Remove , .Contains and some others
also this is the other one
public interface IAppointment
{
DateTime Start { get; }
int Length { get; }
string DisplayableDescription { get; }
bool OccursOnDate(DateTime date);
}
where here i probably need to implement those in a class too , Sorry about my bad explanation but maybe i havent understood the actual problem
P.S. both the interface/classes are being used in another partial class which runs without errors
Update:
My only problem now is that i don't know how to implement the 1st member of the IAppointment (What should it's return type be?? since its the Starting time of the Appointment e.g. 12:00) almost everything else is fine i think
P.S.2 Thank you guys for your help so far!