COM visibility
From MetaSharp
Article Author(s): Audric Thevenet
All Rights Reserved.
By default, your code COM visibility is enabled. You might prefer to control what is exposed to COM and what is hidden. The first thing to do is to tag your main namespace with:
[assembly: System.Runtime.InteropServices.ComVisible(false)]
namespace MyNS
{
...
}
This will disable COM visibility for the whole namespace. You can then add visibility to class/variables/... as needed to control exactly what you want to publish to COM or not:
[assembly: System.Runtime.InteropServices.ComVisible(true)]
