1234567891011121314151617181920212223242526272829303132 |
- 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();
- }
- }
|