Advertencia del compilador (nivel 2) CS0467
Actualización: noviembre 2007
Mensaje de error
Ambigüedad entre el método 'método' y el no método 'no método'. Se utilizará el grupo de métodos.
Ambiguity between method 'method' and non-method 'non-method'. Using method group.
Error de ambigüedad creado por miembros con la misma firma, heredados de distintas interfaces.
Ejemplo
En el siguiente ejemplo se genera el error CS0467.
// CS0467.cs
interface IList
{
int Count { get; set; }
}
interface ICounter
{
void Count(int i);
}
interface IListCounter : IList, ICounter {}
class Driver
{
void Test(IListCounter x)
{
x.Count = 1;
x.Count(1); // CS0467
// To resolve change the method name "Count" to another name.
}
static void Main()
{
}
}