C# Programming in easy steps - Programmer Books

[Pages:357] Mike McGrath

C# Programming

In easy steps is an imprint of In Easy Steps Limited 16 Hamilton Terrace . Holly Walk . Leamington Spa Warwickshire . CV32 4LY

Copyright ? 2016 by In Easy Steps Limited. All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without prior written permission from the publisher.

Notice of Liability Every effort has been made to ensure that this book contains accurate and current information. However, In Easy Steps Limited and the author shall not be liable for any loss or damage suffered by readers as a result of any information contained herein.

Trademarks All trademarks are acknowledged as belonging to their respective companies.

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

Contents

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

1

Getting started

Welcome to the exciting world of C# programming. This chapter introduces the Visual Studio Integrated Development Environment and shows you how to create a real Windows application.

Introducing C# Installing Visual Studio Exploring the IDE Starting a Console project Writing your first program Following the rules Summary

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download