All rules
CA2256Usage Enabled by default: As warning

All members declared in parent interfaces must have an implementation in a DynamicInterfaceCastableImplementation-attributed interface

All members declared in parent interfaces must have an implementation in a DynamicInterfaceCastableImplementation-attributed interface

Microsoft docs

Description

Types attributed with System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute act as an interface implementation for a type that implements the IDynamicInterfaceCastable type. As a result, it must provide an implementation of all of the members defined in the inherited interfaces, because the type that implements IDynamicInterfaceCastable will not provide them otherwise.

Cause

An interface with System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute has a non-implemented member.

How to fix violations

Implement the missing interface members.

When to suppress

Do not suppress a warning from this rule.

Group results
0 yes 0 no
ConsensusNone (disabled)
Severity preference (yes voters)
Suggestion0
Warning0
Error0