Prix bas
CHF57.60
Habituellement expédié sous 2 à 4 semaines.
Look sharp--learn or refresh your C# skills with the latest version
C# is one of the most popular programming languages, and frequent updates help it keep pace as the world of coding changes. You can keep pace too, thanks to C# 10.0 All-in-One For Dummies, where you'll learn the basics of the language itself, how to code in Visual Studio, and how to take advantage of the new features in the latest release. At every stage of your career, you'll need to know the cutting-edge trends and techniques that clients want. This book has your back, with info on object-oriented programming, writing secure code, building web applications, and more.
The six standalone mini-books you'll find inside this all-in-one will take you through the changes to C# and the practical applications and dev tools that you need to know. New features covered include records, init only setters, top-level statements, pattern matching enhancements, fit and finish features, and a lot more. Plus, this version is packed with more examples and code snippets, so you can sharply see C# in action!
You need an easy-to-read C# guide that will help you understand the incoming updates, and this For Dummies reference is it.
Auteur
John Paul Mueller is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.
Texte du rabat
Look sharp--learn or refresh your C# skills with the latest version C# is one of the most popular programming languages, and frequent updates help it keep pace as the world of coding changes. You can keep pace too, thanks to C# 10.0 All-in-One For Dummies, where you'll learn the basics of the language itself, how to code in Visual Studio, and how to take advantage of the new features in the latest release. At every stage of your career, you'll need to know the cutting-edge trends and techniques that clients want. This book has your back, with info on object-oriented programming, writing secure code, building web applications, and more. The six standalone mini-books you'll find inside this all-in-one will take you through the changes to C# and the practical applications and dev tools that you need to know. New features covered include records, init only setters, top-level statements, pattern matching enhancements, fit and finish features, and a lot more. Plus, this version is packed with more examples and code snippets, so you can sharply see C# in action! Learn the very basics of C# programming, even if you have no prior experience Refresh your knowledge of the language and learn how to use the new features in the 10.0 version release Read six mini-books on hot coding topics like object-oriented programming, Visual Studio, and Windows 10 development Enhance your employability and join the 6.5-million-strong community of C# developers You need an easy-to-read C# guide that will help you understand the incoming updates, and this For Dummies reference is it.
Contenu
Introduction 1
About This Book 1
Foolish Assumptions 2
Icons Used in This Book 3
Beyond the Book 3
Where to Go from Here 4
Book 1: The Basics of C# Programming 5
Chapter 1: Creating Your First C# Console Application 7
Getting a Handle on Computer Languages, C#, and NET 8
What's a program? 8
What's C#? 9
What's NET? 9
What is Visual Studio 2022? 10
Creating Your First Console Application 11
Creating the source program 11
Taking it out for a test drive 17
Making Your Console App Do Something 17
Reviewing Your Console Application 18
The program framework 19
Comments 19
The meat of the program 19
Replacing All that Ceremonial Code: Top-Level Statements 20
Introducing the Toolbox Trick 21
Saving code in the Toolbox 22
Reusing code from the Toolbox 22
Interacting with C# Online 23
Working with Jupyter Notebook: The Short Version 23
Chapter 2: Living with Variability - Declaring Value-Type Variables 25
Declaring a Variable 26
What's an int? 27
Rules for declaring variables 28
Variations on a theme: Different types of int 28
Representing Fractions 30
Handling Floating-Point Variables 31
Declaring a floating-point variable 31
Examining some limitations of floating-point variables 32
Using the Decimal Type: Is It an Integer or a Float? 34
Declaring a decimal 35
Comparing decimals, integers, and floating-point types 35
Examining the bool Type: Is It Logical? 36
Checking Out Character Types 36
The char variable type 36
Special chars 37
The string type 37
What's a Value Type? 39
Comparing string and char 40
Calculating Leap Years: DateTime 41
Declaring Numeric Constants 43
Changing Types: The Cast 44
Letting the C# Compiler Infer Data Types 46
Chapter 3: Pulling Strings 49
The Union Is Indivisible, and So Are Strings 50
Performing Common Operations on a String 51
Comparing Strings 52
Equality for all strings: The Compare() method 52
Would you like your compares with or without case? 56
What If I Want to Switch Case? 56
Distinguishing between all-uppercase and all-lowercase strings 56
Converting a string to upper- or lowercase 57
Looping through a String 58
Searching Strings 59
Can I find it? 59
Is my string empty? 60
Using advanced pattern matching 60
Getting Input from Users in Console Applications 61
Trimming excess white space 62
Parsing numeric input 62
Handling a series of numbers 64
Joining an array of strings into one string 66
Controlling Output Manually 67
Using the Trim() and Pad() methods 67
Using the Concatenate() method 69
Go Ahead and Split() that concatenate program 71
Formatting Your Strings Precisely 72
Using the String.Format() method 72
Using the interpolation method 77
StringBuilder: Manipulating Strings More Efficiently 77
Chapter 4: Smooth Operators 81
Performing Arithmetic 81
Simple operators 82
Operating orders 82
The assignment operator 84
The increment operator 84
Performing Logical Comparisons - Is That Logical? 85
Comparing floating-point numbers: Is your float bigger than mine? 86
Compounding the confusion with compound logical operations 87
Matching Expression Types at TrackDownAMate.com 89
Calculating the type of an operation 89
Assigning types 91
Changing how an operator works: Operator overloading 92
Chapter 5: Getting into the Program Flow 95
Branching Out with if and switch 96
Introducing the if statement 97
Examining the else statement 100
Avoiding even the else 101
Nesting if statements 102
Running the switchboard 104
Here We Go Loop-the-Loop 110
Looping for a while 111
Doing the do while loop 114
Breaking up is easy to do 115
Looping until you get it right 116
Focusing on scope rules 120
Looping a Specified Number of Times with for 120
A for loop example 121
Why do you need another loop? 122
Nesting loops 123
Chapter 6: Lining Up Your Ducks with Collections 125
The C# Array 126
The argument for the array 126
The fixed-value array 127
The variable-length array 129
Initializing an array 132
Processing Arrays by Using foreach 133
Working with foreach loops in a standard way 133
Relying on GetEnumerator support 134
Sorting Arrays of Data 136 …