. NET several hot issues (. NET staff must read)

Source: Internet
Author: User

The following is a collection of. NET several hot issues and brief answers, to prevent us from answering the question is not professional embarrassment. At the same time there will be some. NET resources are listed in the relevant URL one or two.



one. What is. Net? What does it mainly contain?  


. NET mainly contains common language execution time (Common Language Runtime) and. NET Architecture Class Library.



two.. What are the basic strengths of net?
. NET's key strengths are cross-language, cross-platform, security, and support for open Internet standards and protocols.
. NET supports interoperability of multiple languages, that is, components developed in a language that can be reused under a single component through object-oriented inheritance, right now. NET supports more than 20 languages.


. NET enables the interoperability of objects under heterogeneous platforms by compiling them into intermediate languages (IL) and then running them with the instant (Just in time) compiler to compile the cost-platform code to interoperate with them. NET supported platforms are under development with support for Windows,linux and UNIX.
. NET implements resource object, type security through ordinary language execution (Common Language runtime).
. NET provides access to remote services in heterogeneous network environments through strong support for Internet standards such as HTTP,XML,SOAP,WSDL. A programming interface that connects remote devices and interacts with remote applications.

Three.. What does the normal language execution (Common Language runtime) mean in net? What location in net?
The CLR (Common Language Runtime) Common language execution is the basis for the entire. NET Framework build and is the implementation. NET cross-platform, cross-language. Key to core features such as code security.

It is actually a piece of proxy code residing in memory that is responsible for code management throughout the entire. NET execution. Typical are: memory management, thread management, remote management. Code enforces security types, and so on. These can be referred to as the lifeline of the. NET Framework. In fact, the normal language executes a portion of the operating system's administrative functions.

Four.. What is the net Architecture class library? What is included in the content?
. The NETL Architecture class Library is built on the object-oriented nature of execution, and a collection of reusable class (class) classes that are tightly integrated when normal language executes. It greatly simplifies software development and is easy to integrate seamlessly with third-party components.
. The net Architecture class library mainly includes support for the programming model:
1. Console application.

 
2. Scripts and host applications.  
3. Windows Forms applications (Windows desktop GUI applications).
4. Asp. NET application.  
5. WEB Services applications.  
6. Windows Service program  

Five.. What are the development languages supported by net? What is the interoperability of net languages?   
. Net claims to support more than 20 languages on the market, but at the moment there are only C#,visual Basic.NET officially released by Microsoft. Managed C + +, and Jsript, other vendors claim to have Cobol,eiffel,perl,smalltalk,python support tools in development.  
. NET-language interoperability refers to the support for object inheritance in languages that follow the normal language execution (Common Language Runtime) specification, that is, in a language. NET platform for the development of classes can be reused in a language, which is called the Microsoft Intermediate Language mil, that is, the language compiler first compiled the language into Microsoft intermediate Language, and then the corresponding platform to compile local code. All of this is done under the normal language execution specification.

Six.. What are the platforms supported by net? How is it implemented across platforms?
Support at the moment. NET has Windows 98, NT4 SP6a, Windows Me, and Windows Me. The platforms it claims to support are unix,linux and so on, with three projects currently under development for the. NET platform under Linux: Ximian's Mono project, DOTGNU and potable. Net.

Seven.. What is the relationship between net and COM? Does net mean the end of COM?
COM defines the binary standard for communication between component objects: NET provides a similar mechanism through the component built-in type system, which provides a way to do this. NET does not mean the end of COM. But it will greatly reduce the developer's reliance on COM.. NET supports interoperability between COM and. NET components, which can actually be implemented by the runtime callable Wrapper (RCW). NET to get the COM component, through COM callable Wrapper (CCW) to actually get. NET components in COM today.

Eight.. What is the intermediate language (IL) in the. Net? NET platform, what role does it play? Can developers program in intermediate language (IL)?
. The intermediate language in net is to be able to execute in the normal language under the specification, when executed by the immediate (Just in time) compiler converted to local code. A collection of family instructions independent of the CPU.

It's in. NET platform is the implementation of language interoperability of a core link, all. NET platform must first be compiled into intermediate (IL) languages.

Program apes can also be programmed directly using intermediate language (IL), but it is not recommended to do so, and the intermediate language is understood. NET object debugging of certain behaviors and programs is very helpful

Nine.. What is self-active garbage collection in net? It gives. What is the change in programming under the net platform?
. NET garbage collector is responsible for the memory allocation and deallocation tasks of managed code throughout. NET execution.

It selects the collected objects and time by a certain optimization algorithm.

Program apes only have the ability to force garbage collection immediately when releasing large amounts of managed resources. The Dispose () method should be implemented in the process of releasing the unmanaged resource, which needs to be disposed of in the execution of the program, and the call should be understood. Other times, the recycling of resources is handed over. NET garbage collection up to do.



10.. What does the managed (Managed) code and Unmanaged (unmanaged) Code of net mean? What is the difference between their codes?
. NET Managed code refers to the normal language execution (Common Language Runtime) specification, which is managed in memory by the code agent during execution. Thread management, remote management. Code that enforces the security type.

The unmanaged code refers to the memory, the file. Code that operates on unmanaged resources such as databases. They are usually not managed by the code agent when they are executed, and are not secure. The programming of the managed code only needs to focus on the logic of programming, the management of memory and other resources to the ordinary language execution (Common Language Runtime) to be responsible for, and the non-managed code programming, the developer is carefully responsible for the various unmanaged resources allocation and recycling work.

. NET several hot issues (. NET staff must read)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.