Because when I inherit an interface and implement the same methods I get Warning CS0108.
Active A variable was declared with the same name as a variable in a base class. However, the new keyword was not used. This warning informs you that you should use new; the variable is declared as if new had been used in the declaration.
For example;
public interface IRepositorioDeValidador : IRepositorio<Validador>
{
void Adicionar(Validador validador);
void Alterar(Validador validador);
void Excluir(Validador validador);
}
public interface IRepositorio<TEntidade> where TEntidade : Poco
{
void Adicionar(TEntidade entidade);
void Excluir(TEntidade entidade);
}
In% with IRepositorioDeValidador
and void Adicionar(Validador validador);
shows me this message, I know I did not need them in this interface , but it was created like this and I have several cases that way.
Is there any way I can not display the message in my interface that inherits from void Excluir(Validador validador);
and is already in this form?