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.
Author(s): Mike McGrath
Publisher: In Easy Steps Limited
Year: 2017
Language: English
Pages: 192
Title
Copyright
Contents
1 Getting started
Introducing C#
Installing Visual Studio
Exploring the IDE
Starting a Console project
Writing your first program
Following the rules
Summary
2 Storing values
Creating variables
Reading input
Employing arrays
Casting data types
Fixing constants
Summary
3 Performing operations
Doing arithmetic
Assigning values
Comparing values
Assessing logic
Examining conditions
Setting precedence
Summary
4 Making statements
Branching with if
Switching branches
Looping for
Looping while
Iterating for each
Summary
5 Devising methods
Creating function
Passing arguments
Overloading methods
Refactoring code
Summary
6 Handling strings
Discovering string features
Manipulating strings
Joining and comparing strings
Copying and swapping strings
Finding substrings
Formatting strings
Formatting date strings
Summary
7 Accessing files
Writing a file
Appending to a file
Reading text and lines
Streaming lines
Manipulating input and output
Summary
8 Solving problems
Detecting real-time errors
Fixing compile-time errors
Debugging code
Setting breakpoints
Catching run-time errors
Getting help
Summary
9 Creating objects
Encapsulating data
Creating multiple objects
Initializing class members
Inheriting class properties
Calling base constructors
Hiding base methods
Directing method calls
Providing capability classes
Employing partial classes
Summary
10 Controlling events
Starting a Forms project
Adding visual controls
Writing functional code
Gathering text entries
Ticking option boxes
Showing user messages
Calling system dialogs
Creating application menus
Making menus work
Importing audio resources
Summary
11 Building an application
Planning the program
Assigning fixed properties
Designing the layout
Setting dynamic properties
Adding runtime function
Testing the program
Publishing the application
Summary
12 Targeting devices
Starting a Universal project
Inserting page components
Importing program assets
Designing the layout
Adding runtime function
Testing the program
Adjusting the interface
Deploying the application
Summary
Back Cover