DLL Files
m7med
mert-1 wrote:
1 ) Can we say that all different packages have different DLL files
I try to seperate unrealated projects from each other. For example i have an CompanyName.Controls.dll. This library contains all controls that we have created for our applications. In each application is use controls from that library. When someone has found a bug in a control, i can fix it and this will fix it for all projects that are using that library.
I don't want to re-create the controls for each project, so i bundle them into one library.
mert-1 wrote:
2 ) When we compile any project, is it true that the classes of the package of that project is compiled
I'm not sure what you mean with package But when you compile a project, the full project will be compiled. So all source files that are in this project and all resources will be compiled to an assembly.
mert-1 wrote:
3 ) By knowing what DLL files means, now we can refer internal keywords. So Can we say that internal keyword has the same meaning with protected keyword in Java
I don't have a lot of experience with java, but you can find the exact meaning of the protected keyword here: protected (C# Reference).
You can also take and look to the following article that will show the difference between the available access modifiers: Accessibility Levels (C# Reference).
Ryan Cavanaugh MS
mert-1 wrote:
Hi ,
Firstly thanks very much for your explanatory reply.
I also want to ask something about assemblies.
I think all assemblies are constructed by namespaces which include the classes that is compiled at that time, is not it
So, internal keywords provide us to access the only classes which are located in that namespace(Assembly's namespace), is it true
This is correct indeed.
Quote of deleted reply
mert-1 wrote:
I heard that internal keyword means that the visiblity for classes which is kept in the same DLL library(File). So, I wonder that internal keywords provides the visibility for classses which are in the same namespaces.
No, the internal keyword is an access modifier for types and type members. Internal types or members are accessible only within files in the same assembly. You can read the full details and see and example here: internal (C# Reference).
mert-1 wrote:
The reason for my this opinion is that I know that DLL files is constructed by allocating the classes who have similar functions or are a little bit related with each other. For example, we use using keywords to call any class of ant specified namespaces. So, does it have the same meaning with this : we call the DLL files of the class that we wnat to use in our project (or files)
No, a DLL can contain one or more namespaces. Most of the time you have a Namespace like CompanyName.Controls and meybe extra namespaces related to it like CompanyName.Controls.Painting, CompanyName.Controls.Input and CompanyName.Controls.Grid.
mert-1 wrote:
And, Does creating namespaces have the same meaning with creating DLL files
No... the same reason as one quote above

DLL Files
Alain L
I supposed that at the below codes, that are form the link that you sent, should not have created any error since both class are in the same default namespaces as in the Java.
So I would like to ask that is not there any default namespaces concept in C#
So if there is, why does the following ocde snippets create an error
Narek
The namespace isn't related to the internal access modifier, it is the assembly that is creating the hence around your class.
Every class in every namespace can use your internal BaseClass as long as they are in the same assembly as the BaseClass.