C# Programming in easy steps

C# Programming in easy steps

by Mike McGrath

Paperback

$13.91 $14.99 Save 7% Current price is $13.91, Original price is $14.99. You Save 7%.
View All Available Formats & Editions
Choose Expedited Shipping at checkout for guaranteed delivery by Wednesday, August 21

Overview


C# Programming in easy steps will teach you to code applications and demonstrates every aspect of the C# language that you will need to produce professional programming results. Its examples provide clear syntax-highlighted code showing C# language basics including variables, arrays, logic, looping, methods, and classes.

The guide begins by explaining how to install the free Visual Studio Community Edition, which creates an environment where you can quickly build your own executable programs by copying the book's examples. It demonstrates all the C# language basics before moving on to provide examples of Object Oriented Programming. The book concludes by demonstrating how you can use your acquired knowledge to create graphic programs for traditional PC Desktop apps and, also, as Universal apps for multiple devices.

C# Programming in easy steps has an easy-to-follow style that will appeal to anyone who wants to begin programming in C# or to the programmer who wants to add C# to his or her skill set. It will also appeal to the hobbyist or student who wants to begin creating apps for their own computers and to those seeking a career in computing who need a fundamental understanding of C# programming.

Product Details

ISBN-13: 9781840787191
Publisher: In Easy Steps Limited
Publication date: 01/13/2017
Series: In Easy Steps Series
Pages: 192
Sales rank: 517,144
Product dimensions: 7.20(w) x 8.80(h) x 0.50(d)

About the Author


Mike McGrath gained his extensive knowledge of computer languages while working as a developer contracting to companies around the world. Mike is an established In Easy Steps author with several guides to his credit including: C++; Javascript, Java, Linux, PHP, SQL and Visual Basic Express.

Table of Contents

1 Getting started 7

Introducing C# 8

Installing Visual Studio 10

Exploring the IDE 12

Starting a Console project 14

Writing your first program 16

Following the rules 18

Summary 20

2 Storing values 21

Creating variables 22

Reading input 24

Employing arrays 26

Casting data types 28

Fixing constants 30

Summary 32

3 Performing operations 33

Doing arithmetic 34

Assigning values 36

Comparing values 38

Assessing logic 40

Examining conditions 42

Setting precedence 44

Summary 46

4 Making statements 47

Branching with if 48

Switching branches 50

Looping for 52

Looping while 54

Iterating for each 56

Summary 58

5 Devising methods 59

Creating function 60

Passing arguments 62

Overloading methods 64

Refactoring code 66

Summary 68

6 Handling strings 69

Discovering string features 70

Manipulating strings 72

Joining and comparing strings 74

Copying and swapping strings 76

Finding substrings 78

Formatting strings 80

Formatting date strings 82

Summary 84

7 Accessing files 85

Writing a file 86

Appending to a file 88

Reading text and lines 90

Streaming lines 92

Manipulating input and output 94

Summary 96

8 Solving problems 97

Detecting real-time errors 98

Fixing compile-time errors 100

Debugging code 102

Setting breakpoints 104

Catching run-time errors 106

Getting help 108

Summary 110

9 Creating objects 111

Encapsulating data 112

Creating multiple objects 114

Initializing class members 116

Inheriting class properties 118

Calling base constructors 120

Hiding base methods 122

Directing method calls 124

Providing capability classes 126

Employing partial classes 128

Summary 130

10 Controlling events 131

Starting a Forms project 132

Adding visual controls 134

Writing functional code 136

Gathering text entries 138

Ticking option boxes 140

Showing user messages 142

Calling system dialogs 144

Creating application menus 146

Making menus work 148

Importing audio resources 150

Summary 152

11 Building an application 153

Planning the program 154

Assigning fixed properties 156

Designing the layout 158

Setting dynamic properties 160

Adding runtime function 162

Testing the program 164

Publishing the application 166

Summary 168

12 Targeting devices 169

Starting a Universal project 170

Inserting page components 172

Importing program assets 174

Designing the layout 176

Adding runtime function 178

Testing the program 180

Adjusting the interface 182

Deploying the application 184

Summary 186

Index 187

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews