.NET是指框架或技术 [英] .NET means framework or technology

查看:67
本文介绍了.NET是指框架或技术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.NET到底是什么?
我该如何向问我的任何人回答这个问题.

提供解决方案.
我已经在Google上阅读了太多信息,但不清楚.

What exactly is a .NET?
How should I answer this question to anyone who ask me.

Give a solution.
I have read so much information on Google, but with no clarity.

推荐答案

.NET基本上是主要在Microsoft Windows上运行的框架.
代码项目有一个很好的文章 [
.NET is basically a framework runs primarily on Microsoft Windows.
Code project has a good article[^] on same subject.


以下维基百科:
.NET Framework(发音为点网)是主要在Microsoft Windows上运行的软件框架. [ ^ ]
那么什么是框架?
在计算机编程中,软件框架是一种抽象,其中可以通过用户代码选择性地更改提供通用功能的软件,从而提供特定于应用程序的软件.它是提供定义的应用程序编程接口(API)的软件库的集合. [ ^ ]
那是软件库的集合吗?
在计算机科学中,图书馆是用于开发软件的资源的集合. ,类,值或类型规范. [^ ]

因此,基本上.NET是主要在Windows上用于软件开发的丰富平台.
因此,例如,在编程时,您将需要使用文本和数字(字符串和整数),它们都在.NET Framework中定义(如果不是,则可能必须使用1和0' s ...你不要那个.)
您可能必须创建服务(在ServiceModel库中).当您必须自己做所有事情时,创建可以通过http从网络中的任何计算机访问的服务几乎是不可能的任务.但是,.NET为您做了很多工作(.NET本身是在一个框架中编写的,该框架为.NET程序员做了很多工作).从这个意义上讲,最困难的部分被抽象掉了,只有一些实现细节留给了程序员.
那么.NET还可以为程序员处理什么呢?例如内存管理(发生在后台,但是程序员在编写.NET时通常不必担心),异常处理(将异常抛出堆栈,直到找到可以处理的Catch块为止),读取或写入文件(使用System.IO命名空间)后,该列表将一直存在.

有时您仍然需要编写大量代码,但是调用方法File.Open("C:\ MyTextFile.txt")比必须在"00110100101100100"(或类似内容)中键入内容容易得多.
Following Wikipedia:
The .NET Framework (pronounced dot net) is a software framework that runs primarily on Microsoft Windows.[^]
So what is a Framework?
In computer programming, a software framework is an abstraction in which software providing generic functionality can be selectively changed by user code, thus providing application specific software. It is a collection of software libraries providing a defined application programming interface (API).[^]
So it is a collection of software libraries?
In computer science, a library is a collection of resources used to develop software.[disputed – discuss] These may include pre-written code and subroutines, classes, values or type specifications.[^]

So basically .NET is a rich platform used for software development, primarily on Windows.
So for example, when programming you will need to work with text and numbers (String and Integers), both are defined in the .NET Framework (if they weren''t you might have to work with 1''s and 0''s... You don''t want that).
You might have to create Services (in the ServiceModel library). Creating a service that may be accessed through http from any computer in a network is a near impossible task when having to do everything yourself. However, .NET does a lot of the work for you (and .NET itself is written in a framework that does a lot of work for the programmers of .NET). In this sense the hard part is abstracted away and only some implementation details are left to the programmer.
So what else does .NET handle for a programmer? For example memory management (which happens in the background, but which a programmer usually does not have to worry about when programming .NET), Exception handling (Exceptions are thrown up the stack until it finds a Catch block where it can be handled), reading or writing files (with System.IO namespace) and the list goes on and on.

You still have to make a lot of code sometimes, but calling a method File.Open("C:\MyTextFile.txt") is a lot easier than having to type something along the lines of "00110100101100100" (or whatever) ;)


多么无意义的问题!它是一个平台,技术,框架.事情的本质不是这些话.

—SA
What a pointless question! It''s a platform, a technology, a framework. The essence of things is not in those words.

—SA


这篇关于.NET是指框架或技术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆