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. Is there a C# equivalent to the friend class concept in C++?

Is there a C# equivalent to the friend class concept in C++?

Scheduled Pinned Locked Moved C#
csharpc++question
5 Posts 3 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.
  • N Offline
    N Offline
    nicknotyet
    wrote on last edited by
    #1

    Subject says it all.

    R 1 Reply Last reply
    0
    • N nicknotyet

      Subject says it all.

      R Offline
      R Offline
      Rob Graham
      wrote on last edited by
      #2

      The short answer is no. The closest analogue is "internal" (not very close).

      N 1 Reply Last reply
      0
      • R Rob Graham

        The short answer is no. The closest analogue is "internal" (not very close).

        N Offline
        N Offline
        nicknotyet
        wrote on last edited by
        #3

        That's what I thought, thanks for the confirmation. I suppose it can be simulated with "internal" classes and small assembly groupings, but not quite the same thing.

        L 1 Reply Last reply
        0
        • N nicknotyet

          That's what I thought, thanks for the confirmation. I suppose it can be simulated with "internal" classes and small assembly groupings, but not quite the same thing.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Perhaps this is, what you are looking for: Click regards

          N 1 Reply Last reply
          0
          • L Lost User

            Perhaps this is, what you are looking for: Click regards

            N Offline
            N Offline
            nicknotyet
            wrote on last edited by
            #5

            Wasn't aware of that, thanks for the pointer.

            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