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