没有合适的资源?快使用搜索试试~ 我知道了~
首页C#编程21天自学指南 - 2004年版
C#编程21天自学指南 - 2004年版
5星 · 超过95%的资源 需积分: 10 2 下载量 72 浏览量
更新于2024-07-22
收藏 8.41MB PDF 举报
"C# Language In 21 Days - 2004 ).
本书《C# Language In 21 Days》由Bradley L. Jones撰写,是2004年的一本C#编程语言教程,旨在帮助读者在21天内掌握C#语言的基础和进阶知识。这本书由Sams Teach Yourself系列出版,旨在通过逐步学习的方式,让读者快速上手C#编程。
在版权方面,此书明确指出未经出版社书面许可,不得复制、存储、传输任何部分书中的内容,无论是电子方式、机械方式、复印、录音或其他方式。同时,作者和出版社对于书中信息的使用不承担任何专利责任,也不对因使用信息而产生的错误或遗漏负责。
书籍的国际标准书号(ISBN)为0-672-32546-2,美国国会图书馆编目卡号为2003092624,于2003年7月在美国首次印刷。页码显示有06、05、04、03和432,这可能表示修订或版本信息。
在商标方面,书中提及的所有被认为是商标或服务标志的术语都已适当地大写。然而,Sams Publishing无法保证这些信息的准确性,这意味着读者在实际应用中仍需自行确认商标的合法性和正确性。
虽然提供的部分内容没有涵盖具体的技术知识点,但我们可以推测书中可能包括以下C#语言的关键主题:
1. C#基础:变量、数据类型、控制流(如if语句、循环)、函数、类和对象。
2. 面向对象编程:继承、封装、多态。
3. 异常处理:try-catch语句。
4. 枚举、结构和接口。
5. 集合和泛型:数组、列表、字典等。
6. 文件和流操作。
7. 构建Windows应用程序:Windows Forms。
8. 多线程编程。
9. ADO.NET数据库访问。
10. .NET框架和类库的使用。
11. XML处理。
12. 高级主题,如反射、委托和事件。
21天的学习计划可能会按照每天一个或多个主题的节奏进行,确保读者每天都能深入理解和实践C#语言的一个方面,从而在短时间内建立起坚实的编程基础。
CHAPTER 16 Creating Windows Forms 539
Working with Windows and Forms ....................................................................540
Creating Windows Forms ..................................................................................540
Compiling Options ......................................................................................540
Analyzing Your First Windows Form Application ........................................542
Understanding the Application.Run Method ................................................543
Customizing a Form ..........................................................................................545
Customizing the Caption Bar on a Form ......................................................545
Sizing a Form ................................................................................................548
Changing the Colors and Background of a Form ........................................550
Changing the Form’s Borders ......................................................................554
Adding Controls to a Form ................................................................................556
Working with Labels and Text Display ........................................................557
A Suggested Approach for Using Controls ..................................................561
Working with Buttons ..................................................................................563
Working with Text Boxes ..............................................................................569
Working with Other Controls ......................................................................573
Summary ............................................................................................................574
Q&A ....................................................................................................................574
Workshop ............................................................................................................575
Quiz ..............................................................................................................575
Exercises ........................................................................................................575
C
HAPTER 17 Creating Windows Applications 577
Working with Radio Buttons ..............................................................................578
Grouping Radio Buttons ................................................................................578
Working with Containers ..............................................................................582
Working with List Boxes ....................................................................................586
Adding Items to the List ................................................................................587
Adding Menus to Your Forms ............................................................................591
Creating a Basic Menu ..................................................................................591
Creating Multiple Menus ............................................................................594
Using Checked Menus ..................................................................................597
Creating a Pop-Up Menu ..............................................................................602
Displaying Pop-Up Dialog Boxes and Forms ....................................................604
Working with the
MessageBox Class ............................................................604
Using Pre-existing Microsoft Windows Dialog Boxes ................................607
Popping Up Your Own Dialog Box ..............................................................610
Summary ............................................................................................................613
Q&A ....................................................................................................................614
Workshop ............................................................................................................614
Quiz ..............................................................................................................614
Exercises ........................................................................................................615
Contents xv
TYPE & RUN 4 Tic Tac Toe 617
The Tic Tac Toe Code ........................................................................................618
C
HAPTER 18 Working with Data and Databases 629
Understanding Key Database Concepts ..............................................................630
Understanding the Terminology ....................................................................630
Introducing ADO.NET ......................................................................................631
Connecting to and Working with a Database ....................................................632
Making the Connection to the Database ......................................................633
Executing a Command ................................................................................635
Retrieving Data with a DataReader ............................................................635
Closing the Database ....................................................................................637
Pulling It All Together ..................................................................................637
Adding, Updating, and Deleting Data ................................................................641
Other Database Concepts ....................................................................................644
Summary ............................................................................................................645
Q&A ....................................................................................................................645
Workshop ............................................................................................................645
Quiz ..............................................................................................................646
Exercises ........................................................................................................646
C
HAPTER 19 Creating Remote Procedures: Web Services 647
Creating Web Applications ................................................................................648
Examining the Concept of a Component ..........................................................648
Web Services ......................................................................................................648
Creating a Simple Component ....................................................................649
Creating a Web Service ................................................................................652
Creating a Proxy ............................................................................................655
Calling a Web Service ..................................................................................658
Summary ............................................................................................................659
Q&A ....................................................................................................................660
Workshop ............................................................................................................660
Quiz ..............................................................................................................660
Exercises ........................................................................................................661
T
YPE & RUN 5 Quote of the Day Web Service 663
The Web Service File ..........................................................................................663
The Proxy File ....................................................................................................666
Using the Service ................................................................................................668
C
HAPTER 20 Creating Web Applications 673
Creating Regular Web Applications ..................................................................674
Working with Web Forms ............................................................................676
Creating a Basic ASP.NET Application ........................................................676
Using ASP.NET Controls ............................................................................679
xvi Sams Teach Yourself the C# Language in 21 Days
Summary ............................................................................................................687
Q&A ....................................................................................................................688
Workshop ............................................................................................................688
Quiz ..............................................................................................................688
Exercises ........................................................................................................689
C
HAPTER 21 A Day for Reflection and Attributes 691
Reflecting on Reflection ....................................................................................692
Understanding Attributes ....................................................................................697
What Are Attributes? ....................................................................................698
Using Attributes ............................................................................................698
Using Multiple Attributes ..............................................................................700
Using Attributes That Have Parameters ........................................................700
Defining Your Own Attribute ........................................................................701
Accessing the Associated Attribute Information ..........................................706
Pulling It All Together ..................................................................................708
Single-Use Versus Multiuse Attributes ..........................................................711
Reflecting on the Future of C# ..........................................................................712
Generics ........................................................................................................712
What Are Iterators? ......................................................................................714
What Are Partial Types? ................................................................................714
What Are Anonymous Methods? ..................................................................715
Summary ............................................................................................................715
Congratulations! ..................................................................................................716
Q&A ....................................................................................................................716
Workshop ............................................................................................................717
Quiz ..............................................................................................................717
Exercises ........................................................................................................717
WEEK 3 Week In Review 719
Apply What You Know ......................................................................................719
Show What You Know ........................................................................................719
Appendices 721
APPENDIX A C# Keywords 723
abstract ............................................................................................................723
as ........................................................................................................................723
base ....................................................................................................................723
bool ....................................................................................................................724
break ..................................................................................................................724
byte ....................................................................................................................724
case ....................................................................................................................724
Contents xvii
xviii Sams Teach Yourself the C# Language in 21 Days
catch ..................................................................................................................724
char ....................................................................................................................724
checked ..............................................................................................................724
class ..................................................................................................................724
const ..................................................................................................................725
continue ............................................................................................................725
decimal ..............................................................................................................725
default ..............................................................................................................725
delegate ............................................................................................................725
do ........................................................................................................................725
double ................................................................................................................725
else ....................................................................................................................726
enum ....................................................................................................................726
event ..................................................................................................................726
explicit ............................................................................................................726
extern ................................................................................................................726
false ..................................................................................................................726
finally ..............................................................................................................726
fixed ..................................................................................................................726
float ..................................................................................................................727
for ......................................................................................................................727
foreach ..............................................................................................................727
get ......................................................................................................................727
goto ....................................................................................................................727
if ........................................................................................................................727
implicit ............................................................................................................727
in ........................................................................................................................728
int ......................................................................................................................728
interface ............................................................................................................728
internal ............................................................................................................728
is ........................................................................................................................728
lock ....................................................................................................................728
long ....................................................................................................................728
namespace ............................................................................................................729
new ......................................................................................................................729
null ....................................................................................................................729
object ................................................................................................................729
operator ............................................................................................................729
out ......................................................................................................................729
override ............................................................................................................729
params ................................................................................................................729
partial ..............................................................................................................730
private ..............................................................................................................730
protected ............................................................................................................730
public ................................................................................................................730
readonly ............................................................................................................730
ref ......................................................................................................................730
return ................................................................................................................730
sbyte ..................................................................................................................731
sealed ................................................................................................................731
set ......................................................................................................................731
short ..................................................................................................................731
sizeof ................................................................................................................731
stackalloc ..........................................................................................................731
static ................................................................................................................731
string ................................................................................................................731
struct ................................................................................................................732
switch ................................................................................................................732
this ....................................................................................................................732
throw ..................................................................................................................732
true ....................................................................................................................732
try ......................................................................................................................732
typeof ................................................................................................................732
uint ....................................................................................................................733
ulong ..................................................................................................................733
unchecked ............................................................................................................733
unsafe ................................................................................................................733
ushort ................................................................................................................733
using ..................................................................................................................733
value ..................................................................................................................733
virtual ..............................................................................................................734
void ....................................................................................................................734
where ..................................................................................................................734
while ..................................................................................................................734
yield ..................................................................................................................734
APPENDIX B Command-Line Compiler Flags for Microsoft Visual C# .NET 735
Output ................................................................................................................735
/out:<file> ..................................................................................................735
/target:<type> or /t:<type> ......................................................................735
/define:<symbol list> or /d: <symbol list> ..........................................736
/doc:<file> ..................................................................................................736
Contents xix
剩余805页未读,继续阅读
mcxll
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 黑板风格计算机毕业答辩PPT模板下载
- CodeSandbox实现ListView快速创建指南
- Node.js脚本实现WXR文件到Postgres数据库帖子导入
- 清新简约创意三角毕业论文答辩PPT模板
- DISCORD-JS-CRUD:提升 Discord 机器人开发体验
- Node.js v4.3.2版本Linux ARM64平台运行时环境发布
- SQLight:C++11编写的轻量级MySQL客户端
- 计算机专业毕业论文答辩PPT模板
- Wireshark网络抓包工具的使用与数据包解析
- Wild Match Map: JavaScript中实现通配符映射与事件绑定
- 毕业答辩利器:蝶恋花毕业设计PPT模板
- Node.js深度解析:高性能Web服务器与实时应用构建
- 掌握深度图技术:游戏开发中的绚丽应用案例
- Dart语言的HTTP扩展包功能详解
- MoonMaker: 投资组合加固神器,助力$GME投资者登月
- 计算机毕业设计答辩PPT模板下载
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功