Skip to content

Gendarme.Rules.Interoperability.Com.ComVisibleTypesShouldBeCreatableRule(git)

Sebastien Pouliot edited this page Mar 2, 2011 · 1 revision

ComVisibleTypesShouldBeCreatableRule

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

Description

This rule checks for ComVisible reference types which have a public parameterized constructor, but lack a default public constructor.

Examples

Bad example:

[ComVisible (true)]
public class BadClass {
    public BadClass (int param) {
    }
}

Good example:

[ComVisible (true)]
public class GoodClass {
    public GoodClass () {
    }
    public GoodClass (int param) {
    }
}

Source code

You can browse the latest source code of this rule on github.com

Clone this wiki locally