IParent.cs 881 B

1234567891011121314151617181920212223242526272829303132
  1. namespace Caliburn.Micro.Core {
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. /// <summary>
  5. /// Interface used to define an object associated to a collection of children.
  6. /// </summary>
  7. public interface IParent {
  8. /// <summary>
  9. /// Gets the children.
  10. /// </summary>
  11. /// <returns>
  12. /// The collection of children.
  13. /// </returns>
  14. IEnumerable GetChildren();
  15. }
  16. /// <summary>
  17. /// Interface used to define a specialized parent.
  18. /// </summary>
  19. /// <typeparam name="T">The type of children.</typeparam>
  20. public interface IParent<out T> : IParent {
  21. /// <summary>
  22. /// Gets the children.
  23. /// </summary>
  24. /// <returns>
  25. /// The collection of children.
  26. /// </returns>
  27. new IEnumerable<T> GetChildren();
  28. }
  29. }