بازگشت   پی سی سیتی > کامپیوتر اینترنت و شبکه Computer internet > سیستم عامل > ویندوز windows > مقالات آموزش ترفندها... Traning > مقایسه ها > مبانی نرم افزار

پاسخ
 
ابزارهای موضوع نحوه نمایش
  #1  
قدیمی 06-27-2013
DifferenceBetween آواتار ها
DifferenceBetween DifferenceBetween آنلاین نیست.
ربات اتوماتیک
 
تاریخ عضویت: May 2013
نوشته ها: 108
سپاسها: : 0

0 سپاس در 0 نوشته ایشان در یکماه اخیر
Post مقایسه تفاوت های Difference Between Namespace And Assembly

مقایسه تفاوت های Difference Between Namespace And Assembly



Namespace vs Assembly

In the .NET framework, assemblies come of different building blocks, and these form the key unit that is used for deployment, reuse, control security permissions, and activation scoping. An assembly, on the other hand, is a collection of types and resources which are built to function together and form a logical unit. Looking at an assembly, it is evident that it provides for the common language runtime with its information and with this it can be aware of its implementations. A type on the other hand does not exist to the runtime, especially outside the context of an assembly.

A look at the namespace also reveals that there is a collection of classes, and this makes namespace an excellent choice that can be used in the logical organization of classes. This is a very powerful control feature that makes namespace very valuable to users.

When looking at the .NET environment where there is namespace in reference to Visual Studio, the root namespace refers to what each class that is created in Visual Studio becomes part of. Namespace also takes over at the base for any sub-namespaces that occur and are automatically assigned when a class inside the project folder is created.  It is also important to note the assembly name of the compiled file which the code is compiled to.

In the default use of Visual Studio, there should be a default namespace created with the same name as the assembly name. It is however advisable to first think of what it is that you need prior to deciding on whether or not to follow by using the same name. It’s important to think of refactoring and renaming as this, if done without caution, can cause a lot of headache to users.  This is especially the case when using source control. For the best results if different names are desired for the namespace and assembly name, the renaming of the entire project folders ought to be done first.

An easy way to handle these emerging issues is to have a project name that is a descriptive name that represents the concepts of the project. The assembly name, on the other hand, should as much as possible try to factor in component distribution and the technology as well as the company name.

The assembly should always contain namespaces, classes and data types as it is a small unit that functions for code development. It is important to note that assembly defines the name of the .dll file. As it is the unit that defines the .dll file, it is also the same file name that must be used in instances where there is need to avoid the .dll problem.  Namespace has been shown to be an excellent item that prevents conflict when generating user defined classes.

Summary
  1. Namespace is a collection consisting of names that are each  unique
  2. The use of namespace helps in the creation of logical boundaries between groups of classes.
  3. It’s essential to make certain that namespace is defined in user properties at all times  to ensure functionality
  4. Assembly on the other hand is a unit of of output
  5. Assembly helps in versioning and deployment
  6. It contains MSIL code
  7. There is self description in assembly as opposed to Namespace
  8. The assembly is the building block of the .NET environment
  9. Assembly is a collection of functionality in both build and function
  10. Assembly helps in the management of types and resources which are either accessible or within the implementation unit
You might also like…



پاسخ با نقل قول
جای تبلیغات شما اینجا خالیست با ما تماس بگیرید




پاسخ


کاربران در حال دیدن موضوع: 1 نفر (0 عضو و 1 مهمان)
 

مجوز های ارسال و ویرایش
شما نمیتوانید موضوع جدیدی ارسال کنید
شما امکان ارسال پاسخ را ندارید
شما نمیتوانید فایل پیوست در پست خود ضمیمه کنید
شما نمیتوانید پست های خود را ویرایش کنید

BB code is فعال
شکلک ها فعال است
کد [IMG] فعال است
اچ تی ام ال غیر فعال می باشد



اکنون ساعت 04:07 AM برپایه ساعت جهانی (GMT - گرینویچ) +3.5 می باشد.



Powered by vBulletin® Version 3.8.4 Copyright , Jelsoft Enterprices مدیریت توسط کورش نعلینی
استفاده از مطالب پی سی سیتی بدون ذکر منبع هم پیگرد قانونی ندارد!! (این دیگه به انصاف خودتونه !!)
(اگر مطلبی از شما در سایت ما بدون ذکر نامتان استفاده شده مارا خبر کنید تا آنرا اصلاح کنیم)


سایت دبیرستان وابسته به دانشگاه رازی کرمانشاه: کلیک کنید




  پیدا کردن مطالب قبلی سایت توسط گوگل برای جلوگیری از ارسال تکراری آنها