C# 值得学习的开源项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/475145/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 04:53:00  来源:igfitidea点击:

Opensource projects to learn from

c#open-source

提问by

I often read that one of the best ways to continue learning how to programme is to study great opensource projects out there in the wild. Can somewhere recommend a good open source C# project that they learned a lot from. I've been coding a couple of years, both windows and web apps, pretty standard stuff, sql server, asp .net. I'm particulary interested in improving my skills in building well architectured n tier apps

我经常读到,继续学习如何编程的最好方法之一是研究野外的优秀开源项目。可以在某处推荐一个好的开源 C# 项目,他们从中学到了很多东西。我已经编码了几年,包括 windows 和 web 应用程序,非常标准的东西,sql server,asp .net。我对提高构建良好架构的 n 层应用程序的技能特别感兴趣

Thanks,

谢谢,

Brendan

布伦丹

回答by dsimcha

At the general level, I've found that standard library code is often good to learn from. Reading the source to application code is certainly useful. However, reading the code to STL, or D's std.algorithmor something that is similar, teaches you how to think on a higher level, and to create generic, reusable code. In contrast, application code is often more ad-hoc and heavier on boilerplate, and therefore not as educational.

在一般层面上,我发现标准库代码通常很适合学习。阅读应用程序代码的源代码当然很有用。然而,阅读 STL 或D 的 std.algorithm或类似的代码,教你如何在更高的层次上思考,并创建通用的、可重用的代码。相比之下,应用程序代码在样板中通常更临时和更重,因此没有教育意义。

For your specific case, I'd read the code to the libraries/frameworks you're using. It's interesting in and of itself to know how these things work instead of taking them as magic, and they're written by top-tier programmers and probably much higher quality and much more dense in terms of significant programming concepts per line than most application code.

对于您的具体情况,我会阅读您正在使用的库/框架的代码。了解这些东西是如何工作的,而不是将它们视为魔术,这本身就很有趣,而且它们是由顶级程序员编写的,并且在每行重要的编程概念方面可能比大多数应用程序代码质量高得多,密度也高得多.

回答by Matt Ephraim

Microsoft's own ASP.Net MVC projectis open source. It's under their own license, which is probably pretty restrictive about what you can actually do with the code. But it's a pretty large project and interesting to look at.

微软自己的ASP.Net MVC 项目是开源的。它受他们自己的许可,这可能对您实际可以使用代码执行的操作非常严格。但这是一个相当大的项目,看起来很有趣。

回答by Steve

MediaPortal. Some of it is fabulous, some of it is bad. However, if there is anything you want to do, its in there somewhere.

媒体门户。有些是美妙的,有些是坏的。但是,如果您有任何想做的事情,它就在某个地方。

回答by Jim Anderson

Have you looked at Codeplex? There are over 800 open source C# projects there.

你看过Codeplex吗?那里有 800 多个开源 C# 项目。

回答by ivan_ivanovich_ivanoff

How about the OpenJDK (the open source version of the Java Development Kit)?

OpenJDK(Java 开发工具包的开源版本)怎么样?

Here is OpenJDK 6

这是 OpenJDK 6

Here is OpenJDK 7(release planned for 2010 or so)

这是 OpenJDK 7(计划于 2010 年左右发布)

回答by roundcrisis

Have a look at the NHibernatecode its fantastic their repository is here

看看NHibernate代码,他们的仓库就在这里