CHF28.00
Download steht sofort bereit
Update to Wrox's leading C# book for beginners
Get ready for the next release of Microsoft's C# programming
language with this essential Wrox beginner's guide. Beginning
Microsoft Visual C# 2010 starts with the basics and brings you
thoroughly up to speed. You'll first cover the fundamentals such as
variables, flow control, and object-oriented programming and
gradually build your skills for Web and Windows programming,
Windows forms, and data access.
Step-by-step directions walk you through processes and invite
you to "Try it Out," at every stage. By the end, you'll be able to
write useful programming code following the steps you've learned in
this thorough, practical book.
The C# 4 programming language version will be synonymous with
writing code with in C# 2010 in Visual Studio 2010, and you can use
it to write Windows applications, Web apps with ASP.NET, and
Windows Mobile and Embedded CE apps
Provides step-by-step instructions for mastering topics such as
variables, flow controls, and object-oriented programming before
moving to Web and Windows programming and data access
Addresses expressions, functions, debugging, error handling,
classes, collections, comparisons, conversions, and more
If you've always wanted to master Visual C# programming, this
book is the perfect one-stop resource.
Note: CD-ROM/DVD and other supplementary materials are
not included as part of eBook file.
Autorentext
Karli Watson is an author and a consultant for Infusion. Christian Nagel is an author, Microsoft Regional Director, and software architect with more than 20 years of experience. Jacob Hammer Pedersen is an author and senior application developer at Elbek & Vejrup, Denmark. Jon D. Reid is Software Engineering Manager at Metrix LLC. Morgan Skinner is a consultant for Microsoft UK. Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.
Zusammenfassung
Update to Wrox's leading C# book for beginners Get ready for the next release of Microsoft's C# programming language with this essential Wrox beginner's guide. Beginning Microsoft Visual C# 2010 starts with the basics and brings you thoroughly up to speed. You'll first cover the fundamentals such as variables, flow control, and object-oriented programming and gradually build your skills for Web and Windows programming, Windows forms, and data access.
Step-by-step directions walk you through processes and invite you to "Try it Out," at every stage. By the end, you'll be able to write useful programming code following the steps you've learned in this thorough, practical book.
Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
Inhalt
Introduction xxxiii
Part I: The C# Language
Chapter 1: Introducing C# 3
What is the .NET Framework? 3
What's in the .NET Framework? 4
Writing Applications Using the .NET Framework 5
CIL and JIT 5
Assemblies 5
Managed Code 6
Garbage Collection 6
Fitting It Together 7
Linking 8
What is C#? 8
Applications You Can Write with C# 9
C# in This Book 10
Visual Studio 2010 10
Visual Studio 2010 Express Products 11
Solutions 11
Summary 11
Chapter 2: Writing A C# Program 13
The Development Environments 14
Visual Studio 2010 14
Visual C# 2010 Express Edition 17
Console Applications 18
The Solution Explorer 22
The Properties Window 23
The Error List Window 23
Windows Forms Applications 24
Summary 28
Chapter 3: Variables and Expressions 31
Basic C# Syntax 32
Basic C# Console Application Structure 34
Variables 35
Simple Types 36
Variable Naming 40
Naming Conventions 41
Literal Values 42
String Literals 43
Variable Declaration and Assignment 44
Expressions 45
Mathematical Operators 45
Assignment Operators 50
Operator Precedence 51
Namespaces 51
Summary 55
Chapter 4: Flow Control 59
Boolean Logic 59
Boolean Assignment Operators 62
Bitwise Operators 64
Operator Precedence Updated 68
The goto Statement 68
Branching 69
The Ternary Operator 70
The if Statement 70
Checking More Conditions Using if Statements 73
The switch Statement 74
Looping 77
do Loops 78
while Loops 80
for Loops 83
Interrupting Loops 87
Infinite Loops 88
Summary 89
Chapter 5: More About Variables 93
Type Conversion 94
Implicit Conversions 94
Explicit Conversions 96
Explicit Conversions Using the Convert Commands 99
Complex Variable Types 102
Enumerations 102
Defining Enumerations 103
Structs 107
Defining Structs 107
Arrays 110
Declaring Arrays 110
foreach Loops 113
Multidimensional Arrays 113
Arrays of Arrays 115
String Manipulation 116
Summary 121
Chapter 6: Functions 125
Defining and Using Functions 126
Return Values 128
Parameters 130
Parameter Matching 132
Parameter Arrays 132
Reference and Value Parameters 134
Out Parameters 136
Variable Scope 137
Variable Scope in Other Structures 140
Parameters and Return Values versus Global Data 142
The Main() Function 143
Struct Functions 146
Overloading Functions 147
Delegates 149
Summary 152
Chapter 7: Debugging and Error Handling 155
Debugging in VS and VCE 156
Debugging in Nonbreak (Normal) Mode 157
Outputting Debugging Information 158 <...