internal keyword, InternalsAvailableTo
-
I am new to using the InternalsAvailableTo tag in AssemblyInfo. My problem is that my code assembles and works fine, but while coding, VS flags errors. Assembly A inherits from 'internal' members of Assembly B. So assembly B makes "A" a friend by using the InternalsAvailableTo attribute. The program builds and executes fine. While coding, the editor will flag errors such as 'data cannot inherit from ISomeInterface.' (ISomeInterface is declared internal). Am I missing something?
-
I am new to using the InternalsAvailableTo tag in AssemblyInfo. My problem is that my code assembles and works fine, but while coding, VS flags errors. Assembly A inherits from 'internal' members of Assembly B. So assembly B makes "A" a friend by using the InternalsAvailableTo attribute. The program builds and executes fine. While coding, the editor will flag errors such as 'data cannot inherit from ISomeInterface.' (ISomeInterface is declared internal). Am I missing something?
I never heard about that. When I saw your question, I tried to find... I think the attribute you say is: InternalsVisibleTo. But, if the editor show some error, I think it is an editor error, not error in your code.