Question about IChild.cs?

Feb 28, 2013 at 4:48 PM
Why is there a "new" in IChild<TParent> ?
public interface IChild<TParent> : IChild {
    /// <summary>
    /// Gets or Sets the Parent
    /// </summary>
    new TParent Parent { get; set; }
Mar 1, 2013 at 10:34 PM
Edited Mar 1, 2013 at 10:34 PM
IChild, the base interface, already has a property named Parent and it's of a different type. IChild<T> supposes to override it with a generically typed Parent property, but can't because it conflicts. This is the purpose of new - to hide the base member under the current member with the same name.