Skip to content

Gendarme.Rules.Interoperability.Com.AvoidOverloadsInComVisibleInterfacesRule(2.10)

Sebastien Pouliot edited this page Jan 22, 2011 · 2 revisions

AvoidOverloadsInComVisibleInterfacesRule

Assembly: Gendarme.Rules.Interoperability.Com
Version: 2.10

Description

This rule checks for ComVisible interface which contains overloaded methods.

Examples

Bad example:

[ComVisible(true)]
public interface Bad {
    void SomeMethod();
    void SomeMethod(int SomeValue);
}

Good example:

[ComVisible(true)]
public interface Good {
    void SomeMethod();
    void SomeMethodWithValue(int SomeValue);
}
Clone this wiki locally