Sic04/FrameworkLocal/UIClient/Caliburn.Micro/Core/IParent.cs

32 lines
881 B
C#

namespace Caliburn.Micro.Core {
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Interface used to define an object associated to a collection of children.
/// </summary>
public interface IParent {
/// <summary>
/// Gets the children.
/// </summary>
/// <returns>
/// The collection of children.
/// </returns>
IEnumerable GetChildren();
}
/// <summary>
/// Interface used to define a specialized parent.
/// </summary>
/// <typeparam name="T">The type of children.</typeparam>
public interface IParent<out T> : IParent {
/// <summary>
/// Gets the children.
/// </summary>
/// <returns>
/// The collection of children.
/// </returns>
new IEnumerable<T> GetChildren();
}
}