One of the situations that I know of is that you should use new ones in .Net WinForms if you bind to an interface that inherits from another interface and you want to bind to elements in the base interface.
For example, if you have
public interface IOne
{
int ID {get;set;}
string Code {get;set;}
}
public interface ITwo : IOne
{
DateTime CreatedDate {get;set;}
}
and you bind the control to an ITwo object, then you cannot see the properties of the ID or code unless you add them to the ITwo interface. Of course, you do not need to use new ones, but it is recommended.
In addition, I used it only in maintenance mode, i.e. after sending the application, and new requirements require such a change.
NTN, Dean.
source
share