rspec/rules/S3992/rule.adoc

27 lines
520 B
Plaintext
Raw Normal View History

2020-12-23 14:59:06 +01:00
Assemblies should explicitly indicate whether they are meant to be COM visible or not. If the ``ComVisibleAttribute`` is not present, the default is to make the content of the assembly visible to COM clients.
2020-06-30 12:48:39 +02:00
Note that COM visibility can be overridden for individual types and members.
== Noncompliant Code Example
----
using System;
namespace MyLibrary // Noncompliant
{
}
----
== Compliant Solution
----
using System;
[assembly: System.Runtime.InteropServices.ComVisible(false)]
namespace MyLibrary
{
}
----