.net框架基本问题!! [英] .net framework basic questions!!

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

问题描述

我注意到库和框架之间的区别。

我们编写的代码调用库并使用它。

框架调用我们编写的代码。控制反转起主要作用。

这是正确的吗?



框架在.net中真正意味着什么?它与我上面提到的有联系吗?

我注意到这样的东西.. !!框架是图书馆的集合...... !!



我们称.net为框架。 java也有很多库...... !!所以调用java框架是正确的。!!



我完全糊涂了!! !!请解释一下...... !!



我尝试过的事情:



i试图清楚地了解.net是什么..... !!!

解决方案

一般来说:



图书馆确实有效,并没有见解。



框架是固执己见的,你必须遵守他们的规则。

.NET Framework [ ^ ]



Java是一个语言。有java库和java必须在java vm中运行。你可以称之为框架。



.Net不是一种语言。它包括C#,VB,ASP等(包括 COBOL [ ^ ],但这是一个高级插件,不在Microsoft下控制)。



所有.Net语言都编译成IL(中间语言),它运行在CLR中(第一个链接中的描述)。这类似于java的工作方式。



所有这些组件构成了.Net框架。该框架的所有版本都是向后兼容的(你可以在.net4.0框架中运行.Net2.0),但大多数都不是向前兼容的(你不能在.Net2.0框架中运行.Net4.0)。其原因应该是显而易见的,因为运行.Net IL所需的工具和类会在每个版本中使用新功能进行更新。



网上有很多来源可供进一步使用读。从谷歌的什么是.Net框架开始,然后从那里开始。



希望有所帮助^ _ ^

Andy。




PS:对所有其他代码项目的贡献者;我知道这远不是一个完整的解释,我甚至没有提到.Net3.5和其他细微差别,但你可以随意总结你认为应该包含在这篇文章中的任何内容。


i noticed the difference between library and framework.
the code we write calls the library and use it.
framework calls the code we write. inversion of control plays a major role.
is this correct?

what does framework really mean in .net??? is it having linkage with what i have mentioned above?
i noticed something like this..!! framework is the collection of library...!!

we call .net a framework. java is also having number of libraries...!! so is it correct to call java a framework..!!

i am totally confused..!! please explain me...!!

What I have tried:

i have tried to get the clear picture of what .net is.....!!!

解决方案

Generally :

Libraries do work and are not opinionated.

Frameworks are opinionated and you must work within their rules of how to do things.


.NET Framework[^]

Java is a language. There are java libraries and java must run within a java vm. You 'could' call this a framework.

.Net is not a single language. It includes C#, VB, ASP and more (including COBOL[^], but that's a premium plugin and isn't under Microsoft control).

All of the .Net languages compile into IL (Intermediate Language) which runs in the CLR (description in the first link). That is akin to how java works.

All of these components make up the .Net framework. All versions of the framework are backward compatible (you can run .Net2.0 in .net4.0 framework) but most are not forward compatible (you can't run .Net4.0 in .Net2.0 framework). The reason for this should be obvious as the tools and classes required to run .Net IL are updated with new features in each release.

There are many sources online for further reading. Just start with "What is .Net framework" in google and go from there.

Hope that helps ^_^
Andy.


PS: to all the other codeprojects contributers; I know this is far from a full explanation and I haven't even mentioned .Net3.5 and other nuances, but feel free to summarize anything you think should be included in this post.


这篇关于.net框架基本问题!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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