Sic.Framework-Nanjing-Baishi/MECF.Framework.UI.Client/Caliburn.Micro/Core/IChild.cs

23 lines
616 B
C#
Raw Normal View History

2023-04-13 11:51:03 +08:00
namespace Caliburn.Micro.Core {
/// <summary>
/// Denotes a node within a parent/child hierarchy.
/// </summary>
public interface IChild {
/// <summary>
/// Gets or Sets the Parent
/// </summary>
object Parent { get; set; }
}
/// <summary>
/// Denotes a node within a parent/child hierarchy.
/// </summary>
/// <typeparam name="TParent">The type of parent.</typeparam>
public interface IChild<TParent> : IChild {
/// <summary>
/// Gets or Sets the Parent
/// </summary>
new TParent Parent { get; set; }
}
}