DynamicInterfaceCastableImplementation
CS-W1066Interfaces attributed with the DynamicInterfaceCastableImplementation
attribute must contain methods that are marked static and have an implementation. Failing to do so violates the DynamicInterfaceCastableImplementation
contract and may lead to runtime exceptions.
[DynamicInterfaceCastableImplementation]
interface IFoo
{
public void Bar()
{
// ...
}
}
[DynamicInterfaceCastableImplementation]
interface IFoo
{
public static void Bar()
{
// ...
}
}