Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. internal keyword, InternalsAvailableTo

internal keyword, InternalsAvailableTo

Scheduled Pinned Locked Moved C#
visual-studiohelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ryan Minor
    wrote on last edited by
    #1

    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?

    P 1 Reply Last reply
    0
    • R Ryan Minor

      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?

      P Offline
      P Offline
      Paulo Zemek
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups