Here is an exemple of the situation:
public class ScheduleArea : IArea<Schedule>
{
//....
private Dictionary<int, ScheduleArea> subArea;
//....
#region IArea<Schedule> Members
public ICollection<KeyValuePair<int, IArea<Schedule>>> SubArea
{
get {
return (Collection<KeyValuePair<int, IArea<Schedule>>>)this.subArea;//Error here
}
}
#endregion
subArea is containing a ScheduleArea that is in fact an IArea. Why does the conversion doesnt work and how can I fix it?