C#C
C#4y ago
7 replies
floribe2000

❔ Default behavior of ComVisible attribute

While updating a legacy .NET framework application to net6, I ran into a question where I was unable to find an answer for:
What's the default behavior if I simply omit the ComVisible attribute from the AssemblyInfo? The doc says its default value is true but does that only apply when the attribute is set or will it also apply when I don't set the attribute at all? Does the compiler implicitly add anything like that?
Was this page helpful?