合法复制MS的代码? [英] legal to copy MS's code?

查看:62
本文介绍了合法复制MS的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将东西从.NET框架中复制出来并将其混合到您自己的代码中是否合法?我假设是这样,因为我可以直接调用他们的函数

如果我不想在我的服务器代码中避免使用UI库。

我是否需要参考它?

So is it legal to copy stuff out of the .NET framework and mix it into
your own code? I assume so, since I could call their function directly
if I didn''t want to avoid the UI library reference in my server code.
Do I need to reference it?

推荐答案

not_a_commie< no ******** @ gmail.comwrote:
not_a_commie <no********@gmail.comwrote:

因此,从.NET框架中复制内容并将其混合到您自己的代码中是否合法?
So is it legal to copy stuff out of the .NET framework and mix it into
your own code?



不,它不是。

No, it''s not.


我这样认为,因为我可以调用它们的函数直接

如果我不想在我的服务器代码中避免使用UI库引用。
I assume so, since I could call their function directly
if I didn''t want to avoid the UI library reference in my server code.



这与自己复制它不是一回事。

That''s not the same thing as being able to copy it yourself though.


Do我需要参考一下吗?
Do I need to reference it?



是的,或者在不查看原始资源的情况下自行重新实现

(或反编译版本)。

-

Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet 博客: http://www.msmvps.com/jon.skeet

英国的世界级.NET培训: http://iterativetraining.co.uk

Yup, or reimplement it yourself without looking at the original source
(or a decompiled version).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


和你一起可能是假设不正确。虽然微软正在为.NET Framework提供源代码,但据我所知,它是用于调试

的目的。因此,请仔细阅读许可协议。

- Peter

网站: http://www.eggheadcafe.com

UnBlog: http://petesbloggerama.blogspot.com

MetaFinder: http://www.blogmetafinder.com

" not_a_commie"写道:
And you might be "assuming" incorrectly. While Microsoft is making the source
code to the .NET Framework available it is, as I understand it, for debugging
purposes. So, read the licensing agreement carefully.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"not_a_commie" wrote:

因此从.NET框架中复制东西并将其混合到您自己的代码中是否合法?我假设是这样,因为我可以直接调用他们的函数

如果我不想在我的服务器代码中避免使用UI库。

我是否需要参考它?
So is it legal to copy stuff out of the .NET framework and mix it into
your own code? I assume so, since I could call their function directly
if I didn''t want to avoid the UI library reference in my server code.
Do I need to reference it?


想要避免我的服务器代码中的UI库引用


一些有用的方法无疑是在错误的程序集,由于它们首先由特定团队实施。示例是

System.Web中的缓存功能(最初用于Web应用程序,但

在2.0中增强,因此从任何调用者使用都是合理的),或者

一些比较简单的东西,比如Application类,或者只是

MethodInvoker代表*。


现在;我不是说在任何

场景中使用任何代码总是可以的,但是如果你知道代码在做什么(以及为什么)

然后我没有看到任何问题使用来自服务器应用程序等的UI程序集。

但是你必须*知道你在做什么以及为什么(例如,

System.Drawing在服务代码中存在一些大问题。


在部署方面,由于这些程序集在核心GAC中,你需要
没问题。


只是我的tuppence。


Marc
want to avoid the UI library reference in my server code

Some useful methods are undoubtably in the wrong assemblies, due to
them being implemented first by a particular team. Examples would be
the cache functionality in System.Web (originally for web apps, but
enhanced in 2.0 so that it is reasonable to use from any caller), or
some simpler things like the Application class, or perhaps just the
MethodInvoker delegate*.

Now; I''m not saying that it is always OK to use any code in any
scenario, but if you are aware of what the code is doing (and why)
then I don''t see any issue using a UI assembly from a server app etc.
But you *must* be aware of what you are doing and why (for instance,
System.Drawing has some big issues in service code).

In terms of deployment, since these assemblies are in the core GAC you
have no issues.

Just my tuppence.

Marc


这篇关于合法复制MS的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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