C#: A Beginner's Guide cover

C#: A Beginner's Guide

No rating yet
Word count
290K words
Chapters
20
ISBN
9787115352903

Tags

Summary

C#: A Beginner's Guide is the Chinese translation of C#: A Beginner's Tutorial by Jayden Ky, founder of Brainy Software in Toronto, Canada, translated by Li Qiang and Wu Ge and published by Posts & Telecom Press in July 2014. The book runs to about 290,000 Chinese characters, with 17 chapters and 3 appendices. It does not aim to cover every technical detail of the .NET development framework, but centers on the three main threads beginners really need: the C# language itself, object-oriented programming concepts, and the .NET Framework class library. The first few chapters begin with the first C# program and then cover language fundamentals (Unicode and character types, variables and constants, operators, comments), statements (if, while, do-while, for, switch, break and continue), and objects and classes (namespaces, encapsulation and access control, the this keyword, static members, method overloading), before moving on to inheritance, structs and nullable types, exception handling, numbers and dates, interfaces and abstract classes, enums, generics, and collections. The latter half turns to application-level topics: file and directory operations, reading and writing text streams and binary data, WPF interface programming (controls, panels and layout, event handling, XAML), polymorphism, and using ADO.NET to connect to SQL Server for data access. The three appendices introduce downloading, installing, and creating projects in Visual Studio Express 2012 for Windows Desktop, Visual C# 2010 Express, and SQL Server 2012 Express, helping readers set up a development environment from scratch. The book is rich in examples and plain in language, aimed at C# beginners and students in computer-related majors.

Editor's review

市面上的C#入门书大多厚重,动辄上千页,初学者常常翻到一半就泄了气。这本《C#初学者指南》难得地做到了克制:约300页的篇幅,只讲最要紧的东西。作者Jayden Ky的思路很清晰——先把语言本身讲透(类型、语句、类与对象),再讲面向对象的核心机制(继承、接口、抽象类、多态),最后落到.NET类库与真实应用(集合、IO、WPF、ADO.NET)。 编排上也有可取之处。第1章就让你写出并运行第一个程序,而不是先灌一堆概念;每一章的结尾都有小结,方便回头梳理;结构与可空类型、异常处理、泛型这些容易卡住新手的地方都单独成章,讲得清楚而不拖泥带水。三个附录手把手教装开发环境,对完全没接触过Visual Studio的读者相当友好。 需要提醒的是,本书英文原版出版于2013年,对应C# 5与.NET Framework时代,示例基于Visual Studio 2012/2010 Express与SQL Server 2012 Express。作为语言基础与面向对象思维的教材,它依然扎实可靠;但如果你需要学习.NET Core/.NET 8之后的跨平台开发、async/await之外的新特性或现代化工具链,就需要另行补充资料。

Who it's for

A good fit for

  • 没有任何编程基础、想系统入门C#的读者
  • 计算机及相关专业、需要一门入门教材的大学生
  • 学过VB、C++等语言,想转到C#/.NET平台的开发者
  • 以Windows桌面开发为方向、想补齐语言基础的从业者

Not a good fit for

  • 已有C#项目经验、想进一步学习高级特性的开发者
  • 主要使用.NET Core/.NET 8跨平台开发或Unity做游戏的读者
  • 希望立刻上手ASP.NET Web API等现代Web框架的人

Reading tips

  1. 先按附录安装Visual Studio,第1章的程序一定亲手跑通,不要只看不敲。
  2. 第2至4章是地基,读完后把书中示例改写一遍并自行加几个小练习,再进入继承与泛型。
  3. 第15、17章的WPF和ADO.NET可以结合一个小项目练习,例如做一个能读写数据库的桌面小工具。
  4. 书中的.NET Framework与Visual Studio版本偏旧,遇到API或工具差异时以微软官方文档为准。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Chapter 1 Getting Started with C#
  2. Chapter 2 Language Fundamentals
  3. Chapter 3 Statements
  4. Chapter 4 Objects and Classes
  5. Chapter 5 Core Classes
  6. Chapter 6 Inheritance
  7. Chapter 7 Structs
  8. Chapter 8 Error Handling
  9. Chapter 9 Numbers and Dates
  10. Chapter 10 Interfaces and Abstract Classes
  11. Chapter 11 Enums
  12. Chapter 12 Generics
  13. Chapter 13 Collections
  14. Chapter 14 Input and Output
  15. Chapter 15 WPF
  16. Chapter 16 Polymorphism
  17. Chapter 17 ADO.NET
  18. Appendix A Visual Studio Express 2012 for Windows Desktop
  19. Appendix B Visual C# 2010 Express
  20. Appendix C SQL Server 2012 Express

FAQ

这本书对应的是哪个C#版本?
中文版译自2013年出版的英文原版,内容对应C# 5与.NET Framework,示例工具为Visual Studio 2012/2010 Express和SQL Server 2012 Express,没有涉及.NET Core及后续的跨平台内容。
需要先学C或C++再读吗?
不需要。本书从第一个C#程序讲起,作者本意就是让零基础读者入门,且C#避开了指针与手工内存管理,正好适合作为第一门语言学习面向对象。
书里的代码在哪里下载?
英文原版说明可在Brainy Software网站获取示例代码,中文版由人民邮电出版社出版,可从异步社区(epubit.com)对应页面查找配套资源与勘误。
这本书适合作为高校教材吗?
可以。全书结构按语言、面向对象、类库三部分递进,每章有小结,附录覆盖环境搭建,原书定位即包括教学参考书与培训教材。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

Top rated in the same category