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. How to protect some classes? [modified]

How to protect some classes? [modified]

Scheduled Pinned Locked Moved C#
questionasp-netjsonhelptutorial
4 Posts 4 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.
  • S Offline
    S Offline
    softwarejaeger
    wrote on last edited by
    #1

    Hello, i have a little problem, i have more *.DLL-files, one for my core-functions/classes and one api-dll, where i have my classes and functions, which other developer are able to use, but now i must protect some classes from the eyes of other developers. How can i do that? A protected or private class isn't possible... Or... how to make, that the other developer only get's a signature of my clases, but not really what's in there, because i don't want, that he can use from my API my core-classes (API.DLL has a reference to CORE.dll) Thanks

    modified on Friday, March 6, 2009 3:55 AM

    A D V 3 Replies Last reply
    0
    • S softwarejaeger

      Hello, i have a little problem, i have more *.DLL-files, one for my core-functions/classes and one api-dll, where i have my classes and functions, which other developer are able to use, but now i must protect some classes from the eyes of other developers. How can i do that? A protected or private class isn't possible... Or... how to make, that the other developer only get's a signature of my clases, but not really what's in there, because i don't want, that he can use from my API my core-classes (API.DLL has a reference to CORE.dll) Thanks

      modified on Friday, March 6, 2009 3:55 AM

      D Offline
      D Offline
      Dragonfly_Lee
      wrote on last edited by
      #2

      softwarejaeger wrote:

      but now i must protect some classes from the eyes of other developers.

      So, you just only want to use the dll yourself, rather than other developer? Can "internal" keyword meet your needs?

      :) I Love KongFu~

      1 Reply Last reply
      0
      • S softwarejaeger

        Hello, i have a little problem, i have more *.DLL-files, one for my core-functions/classes and one api-dll, where i have my classes and functions, which other developer are able to use, but now i must protect some classes from the eyes of other developers. How can i do that? A protected or private class isn't possible... Or... how to make, that the other developer only get's a signature of my clases, but not really what's in there, because i don't want, that he can use from my API my core-classes (API.DLL has a reference to CORE.dll) Thanks

        modified on Friday, March 6, 2009 3:55 AM

        A Offline
        A Offline
        ABitSmart
        wrote on last edited by
        #3

        Try internal[^]

        1 Reply Last reply
        0
        • S softwarejaeger

          Hello, i have a little problem, i have more *.DLL-files, one for my core-functions/classes and one api-dll, where i have my classes and functions, which other developer are able to use, but now i must protect some classes from the eyes of other developers. How can i do that? A protected or private class isn't possible... Or... how to make, that the other developer only get's a signature of my clases, but not really what's in there, because i don't want, that he can use from my API my core-classes (API.DLL has a reference to CORE.dll) Thanks

          modified on Friday, March 6, 2009 3:55 AM

          V Offline
          V Offline
          Vikram A Punathambekar
          wrote on last edited by
          #4

          I don't entirely understand your question. If you don't want others to access your classes, use internal like the others said. If you don't want people to decompile your code, get yourself an obfuscator.

          Cheers, Vıkram.

          Carpe Diem.

          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