using IB = IFace<int>;
interface IFace<T>
{
void Foo();
}
class A : IFace<int>
{
void IB.Foo()
{
}
}
Rename alias 'IB' to 'IC'.
using IC = IFace<int>;
interface IFace<T>
{
void Foo();
}
class A : IFace<int>
{
void IFace.Foo() // error CS0305: Using the generic type 'IFace<T>' requires '1' type arguments
{
}
}
Description
using IB = IFace<int>;
interface IFace<T>
{
void Foo();
}
class A : IFace<int>
{
void IB.Foo()
{
}
}
Rename alias 'IB' to 'IC'.
using IC = IFace<int>;
interface IFace<T>
{
void Foo();
}
class A : IFace<int>
{
void IFace.Foo() // error CS0305: Using the generic type 'IFace<T>' requires '1' type arguments
{
}
}