IChild.cs 616 B

1234567891011121314151617181920212223
  1. namespace Caliburn.Micro.Core {
  2. /// <summary>
  3. /// Denotes a node within a parent/child hierarchy.
  4. /// </summary>
  5. public interface IChild {
  6. /// <summary>
  7. /// Gets or Sets the Parent
  8. /// </summary>
  9. object Parent { get; set; }
  10. }
  11. /// <summary>
  12. /// Denotes a node within a parent/child hierarchy.
  13. /// </summary>
  14. /// <typeparam name="TParent">The type of parent.</typeparam>
  15. public interface IChild<TParent> : IChild {
  16. /// <summary>
  17. /// Gets or Sets the Parent
  18. /// </summary>
  19. new TParent Parent { get; set; }
  20. }
  21. }