Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the frequently asked questions about NET

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article shows you what NET FAQs are, concise and easy to understand, which will definitely brighten your eyes. I hope you can gain something through the detailed introduction of this article.

Here are some common questions and answers about .NET.

What is .net? What does it mainly include?

.net is a new generation of computing and communication platform built to simplify application development in the highly distributed environment of the third generation Internet, based on open Internet standards and protocols, and to achieve a high degree of interaction between heterogeneous languages and platforms.

.net mainly includes common language runtime (Common Language Runtime) and .net architecture class library.

What are the main advantages of net?

The main advantages of .net are cross-language, cross-platform, security, and support for open Internet standards and protocols.

.net supports the interoperation of multiple languages, that is, components developed in one language can be reused under another component through object-oriented inheritance. At present, .net supports more than 20 languages.

.net realizes the interoperation of objects on heterogeneous platforms by compiling each language into an intermediate language (IL) first, and then compiling it into local platform code with an just-in-time (Just In Time) compiler during execution. At present, the platforms supported by .net have Windows,Linux and Unix support under development.

.net implements the security of resource objects and types through the common language runtime (Common Language Runtime).

.net provides a programming interface for obtaining remote services, connecting remote devices and interacting with remote applications in heterogeneous network environments through strong support for Internet standards such as HTTP,XML,SOAP,WSDL.

What does the common language runtime (Common Language Runtime) in net refer to? Where is it in .net?

The CLR (Common Language Runtime) common language runtime is the foundation of the entire. Net framework, and is the key to the realization of .net cross-platform, cross-language, code security and other core features. It is actually a piece of proxy code that resides in memory and is responsible for code management throughout the. net execution period. Typical ones are: memory management, thread management, remote management, code enforcement safety type, and so on. These can be called the lifelines of. Net framework. In fact, the common language runtime proxies some of the administrative functions of the operating system.

IV. What is the net architecture class library? What does it include?

The .Netl architecture class library is a collection of reusable classes (Class) that are tightly integrated with the common language runtime and are based on the object-oriented features of the runtime. It greatly simplifies the difficulty of software development and is easy to integrate seamlessly with third-party components.

The .net architecture class library mainly includes support for the following programming models:

1. Console application.

two。 Scripts and host applications.

3. Windows Forms applications (Windows desktop GUI applications).

4. ASP.Net application.

5. Web Services application.

6. Windows service program

What are the development languages supported by .net? what is the interoperability of the .net language?

.net claims to support more than 20 languages on the market, but so far only Microsoft has officially released Candle Magi Visual Basic.Net,Managed Category, and Jsript. Other vendors claim to be developing support tools such as COBOL,Eiffel,Perl,Smalltalk,Python.

The interoperability of .net language refers to the support of languages that follow the common language runtime (Common Language Runtime) specification in terms of object inheritance, that is, classes developed in one language under the .net platform can be reused in another language, which is realized by a kind of Microsoft intermediate language MIL, that is, the language compiler first compiles the language into Microsoft intermediate language, and then compiles the local code under the corresponding platform. All of this is done under the specification of the common language runtime.

6. Which platforms are supported by net? How is its cross-platform implementation?

Currently, the platforms that support .net are Windows 2000, NT4 SP6a, Windows Me and Windows 98. The platforms it claims to support are Unix,Linux, etc. Currently, three projects are developing the .net platform under Linux: Ximian's Mono project, DotGNU and Potable .NET.

What is the relationship between net and COM? does .net mean the end of COM?

COM defines a binary standard for communication between component objects, and .net provides a similar mechanism through the component's built-in type system, which provides another way to do this. .net does not mean the end of COM, but it will greatly reduce developers' dependence on COM. .net supports the interoperability between COM and .net components. In fact, COM components can be obtained in .net through Runtime Callable Wrapper (RCW) and .net components in COM through COM Callable Wrapper (CCW).

What is the intermediate language (IL) in net? What role does it play in the .net platform? Can developers program in intermediate language (IL)?

The intermediate language in .net means that under the specification of the common language runtime,. A family of instructions independent of CPU that are converted to native code by the just-in-time (Just In Time) compiler at execution time. It is a core part of language interoperability in the .net platform, and all languages on the .net platform must first be compiled into an intermediate language (IL). Programmers can also use intermediate language (IL) to program directly, but that is not recommended. Intermediate language is very helpful for understanding some behaviors of .net objects and debugging programs.

What is automatic garbage collection in net? What changes does it bring to programming on the .net platform?

The .net garbage collector is responsible for the memory allocation and release of managed code throughout the .net runtime. It uses a certain optimization algorithm to select the collected objects and time. Programmers can only force garbage collection immediately when releasing a large number of managed resources, and use Finalize operation to deal with it when releasing unmanaged resources. Those that need to be released in the program should implement the Dispose () method and explicitly call it. At other times, the collection of resources will be handed over to .net garbage collection.

What is the managed (Managed) code and the unmanaged (Unmanaged) code of net? What's the difference between their codes?

The managed code (Managed Code) of .net refers to the code that conforms to the common language runtime (Common Language Runtime) specification and is managed in memory by the runtime code agent for memory management, thread management, remote management, and code enforcement of safe types. Unmanaged code refers to code that operates on memory, files, databases, and other unmanaged resources, which are usually not managed by runtime code agents and are not secure. The programming of managed code only needs to focus on the logic of programming, the management of memory and other resources is responsible for the common language runtime (Common Language Runtime), while for the programming of unmanaged code, developers are carefully responsible for the allocation and recovery of all kinds of unmanaged resources.

The above content is NET FAQ. What are you learning? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report