如何学习 .NET 框架

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/692418/
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-09-03 12:26:01  来源:igfitidea点击:

How to learn the .NET Framework

.net

提问by Anand Shah

Considering the fact that .net is a massive collection of classes, structs, interfaces, methods etc what would be the correct and appropriate approach to get started with and understand the fundamentals of the framework.

考虑到 .net 是类、结构、接口、方法等的大量集合,什么是开始和理解框架基础的正确和适当的方法。

Bearing in mind the two facts that there is no substitute for experience and that there is no limit to learning.

牢记经验无可替代和学习无止境这两个事实。

Many Thanks.

非常感谢。

回答by cletus

Start off by picking one of the .Net languages to learn. I would personally go for C# as being the mainstay of .Net development. Then just go and code something, like problems from Project Euler.

首先选择一种 .Net 语言来学习。我个人会选择 C# 作为 .Net 开发的中流砥柱。然后就去编码一些东西,比如来自 Project Euler 的问题

Once you've mastered the basics of the language (like the data types, language constructs and so forth) then it is an appropriate time to start learning one or more of the .Net frameworks. Here you just pick whatever you're interested in, be it WPF for desktop development, ASP.NET/ASP.NET MVC for Web development, WCF, etc.

一旦您掌握了该语言的基础知识(如数据类型、语言结构等),那么现在是开始学习一个或多个 .Net 框架的合适时机。在这里,您只需选择您感兴趣的任何内容,无论是用于桌面开发的 WPF、用于 Web 开发的 ASP.NET/ASP.NET MVC、WCF 等。

Language first, libraries second.

语言第一,图书馆第二。

回答by JamesEggers

Like others have said, I'd say first, pick a language of the .Net framework. After you have decided on a language, decide on what type of applications you want to develop. .Net has portals for learning each application type.

就像其他人所说的那样,我首先要说的是,选择 .Net 框架的一种语言。确定语言后,再决定要开发的应用程序类型。.Net 有用于学习每种应用程序类型的门户。

Windows Clients (WinForms or WPF) - http://windowsclient.net/

Windows 客户端(WinForms 或 WPF) - http://windowsclient.net/

Web Clients (ASP.Net or ASP.Net MVC) - http://asp.net/

Web 客户端(ASP.Net 或 ASP.Net MVC)- http://asp.net/

Silverlight/RIA applications - http://www.silverlight.net/

Silverlight/RIA 应用程序 - http://www.silverlight.net/

Each of those sites have specifically targeted tutorials that'll help you learn the language as well as how to apply them into the types of applications you want to develop.

每个站点都有专门针对的教程,可以帮助您学习语言以及如何将它们应用到您要开发的应用程序类型中。

回答by Marc Gravell

It depends on your persona. Some people like the book approach - find something like the 70-536 syllabus, and start reading. Personally, I'm more "hands on" - pick a technology (for example ASP.NET MVC) and a language (usually C# or VB) and start trying things. When you get stuck, or unsure, look here (search first), then ask ;-p

这取决于你的性格。有些人喜欢书本方法 - 找到类似于70-536 教学大纲的内容,然后开始阅读。就个人而言,我更喜欢“动手”——选择一种技术(例如 ASP.NET MVC)和一种语言(通常是 C# 或 VB)并开始尝试。当您遇到困难或不确定时,请看这里(先搜索),然后再询问 ;-p

Note that the language is in many ways secondary, but people tend to get religious about it...

请注意,该语言在很多方面都是次要的,但人们往往对它有宗教信仰......

回答by dr. evil

You don't need to learn the whole framework, pick a good book start learning it. While learning you'll have problems, and you'll see other's code which will help you. Try to get a book with lots of examples.

你不需要学习整个框架,挑一本好书开始学习吧。在学习的过程中你会遇到问题,你会看到其他人的代码会帮助你。试着找一本有很多例子的书。

回答by Hannoun Yassir

You just learn what you need example if you want to develop web applications you won't go and learn how to make WPF or windows forms application but you will need to learn about ASP.NET

你只需要学习你需要的例子,如果你想开发 web 应用程序,你不会去学习如何制作 WPF 或 windows 窗体应用程序,但你需要了解 ASP.NET

回答by Eugene Yokota

I think the best way to learn .NET is to write applications (doesn't have to be big or complicated) that .NET was designed to do, like data-driven web app that's designed using components instead of writing html directly, desktop application that consumes Web Services, services that's interoperable with other platforms etc.. that sort of things.

我认为学习 .NET 的最好方法是编写 .NET 设计用来做的应用程序(不必很大或很复杂),比如使用组件而不是直接编写 html 的数据驱动的 Web 应用程序,桌面应用程序使用 Web 服务、可与其他平台互操作的服务等等。诸如此类。

Something like a Twitter client would be something fun to start. You can start simple, and gradually add features as you learn more about .NET. As you read and write in C#, you'll eventually pick up the language.

像 Twitter 客户端这样的东西开始会很有趣。您可以从简单开始,并随着您对 .NET 的更多了解而逐渐添加功能。当您使用 C# 阅读和编写时,您最终会掌握该语言。

回答by Rob Sobers

Where to begin largely depends on your learning style. Personally, I like to take stock of the tools available to me beforeI tackle a problem. I like to know what's in the toolbox and get a feel for what each tool does. Others prefer to dive into a problem and crack open the toolbox only once they know what type of tool they're looking for. This, to me, is slower and increases the likelihood of picking the wrong tool.

从哪里开始在很大程度上取决于您的学习风格。就我个人而言,我喜欢解决问题之前评估可用的工具。我想知道工具箱中有什么,并了解每个工具的作用。其他人更喜欢深入研究问题并在他们知道他们正在寻找什么类型的工具后才打开工具箱。对我来说,这会更慢,并且会增加选择错误工具的可能性。

If you're like me, I'd recommend (like Marc Gravell) the 70-536 training guide. The examples are probably too trivial to apply to the real world, but that's not the point. It's purpose is to give you a guided tour of the toolbox. Start here to get your overview of the coreframework and then move on to one of the books (or online tutorials) that'll guide you through leveraging parts the framework to accomplish something practical.

如果您像我一样,我会推荐(如 Marc Gravell)70-536 培训指南。这些例子可能太琐碎而无法应用于现实世界,但这不是重点。它的目的是为您提供工具箱的导览。从这里开始获得对核心框架的概述,然后继续阅读其中一本书(或在线教程),这些书将指导您利用框架的各个部分来完成一些实用的工作。

回答by Anup

This would be a Jump Start >>.NET Tutorial

这将是一个快速入门 >> .NET 教程

回答by Evil Andy

Learn C instead.

而是学习 C。

No, just kidding. Have you got any experience in other programming languages and if so which one(s)? The correct approach for you will be largely dependent on that. If you have any experience with Java you should try C#. If VB try VB.Net. If Python try IronPython. If Ruby try IronRuby.

不仅仅在开玩笑。您是否有任何其他编程语言的经验,如果有,是哪一种?适合您的正确方法将在很大程度上取决于此。如果您对 Java 有任何经验,则应该尝试 C#。如果 VB 试试 VB.Net。如果 Python 尝试 IronPython。如果 Ruby 尝试 IronRuby。

回答by js2010

How about the object browser under the view menu in Visual Studio? You can search and the docs for the methods are right there.

Visual Studio中视图菜单下的对象浏览器怎么样?您可以搜索,方法的文档就在那里。