C# Programming Cookbook
eBook - ePub

C# Programming Cookbook

Dirk Strauss

Partager le livre
  1. 476 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

C# Programming Cookbook

Dirk Strauss

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

Quick fixes to your common C# programming problems, with a focus on C# 6.0

About This Book

  • Unique recipes for C#, that places it in its real-world context.
  • You will be able to get yourself out of any coding-corner youve backed yourself into.
  • All code samples available through GitHub to bring C#.
  • In line with modern development workflows, written to the latest specification of C# 6.0.

Who This Book Is For

The book is aimed at developers who have basic familiarity with C# programming and will know the VS 2015 environment.

What You Will Learn

  • Write better and less code to achieve the same result as in previous versions of C#.
  • Generate tests from the Code Contracts for mission critical methods.
  • Integrate code in Visual Studio with GitHub.
  • Create a web application in Azure.
  • Design and build a microservice architecture
  • Demystify the Rx library using Reactive extensions
  • Write high performing codes in C# and understanding multi-threading.
  • Security and Debugging.
  • Implement Code Contracts on code in Visual Studio.

In Detail

During your application development workflow, there is always a moment when you need to get out of a tight spot. Through a recipe-based approach, this book will help you overcome common programming problems and get your applications ready to face the modern world.

We start with C# 6, giving you hands-on experience with the new language features. Next, we work through the tasks that you perform on a daily basis such as working with strings, generics, and lots more. Gradually, we move on to more advanced topics such as the concept of object-oriented programming, asynchronous programming, reactive extensions, and code contracts.

You will learn responsive high performance programming in C# and how to create applications with Azure. Next, we will review the choices available when choosing a source control solution. At the end of the book, we will show you how to create secure and robust code, and will help you ramp up your skills when using the new version of C# 6 and Visual Studio

Style and Approach

Unique recipe-based guide that will help you gain a solid understanding of the new concepts in C# 6 and Visual Studio Enterprise 2015 in a concise and technically correct manner.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que C# Programming Cookbook est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  C# Programming Cookbook par Dirk Strauss en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Programming. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2016
ISBN
9781786467300
Édition
1
Sous-sujet
Programming

C# Programming Cookbook


Table of Contents

C# Programming Cookbook
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it

How it works

There's more

See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. New Features in C# 6.0
Introduction
Creating your Visual Studio project
Getting ready
How to do it

How it works

String interpolation
Getting ready
How to do it

How it works

Null-conditional operator
Getting ready
How to do it

How it works

Initializers for auto-implemented properties and getter-only auto properties
Getting ready
How to do it

How it works

Index initializers
Getting ready
How to do it

How it works

The nameof expressions
Getting ready
How to do it

How it works

Expression-bodied functions and properties
Getting ready
How to do it

How it works

Using static
Getting ready
How to do it

How it works

Exception filters
Getting ready
How to do it

How it works

Using await operator in catch and finally blocks
Getting ready
How to do it

How it works

2. Classes and Generics
Introduction
Creating and implementing an abstract class
Getting ready
How to do it

How it works

Creating and implementing an interface
Getting ready
How to do it

How it works

Creating and using a generic class or method
Getting ready
How to do it

How it works

Creating and using a generic interface
Getting ready
How to do it

How it works

3. Object-Oriented Programming in C#
Introduction
Using inheritance in C#
Getting ready
How to do it

How it works

Using abstraction
Getting ready
How to do it

How it works

Leveraging encapsulation
Getting ready
How to do it

How it works

Implementing polymorphism
Getting ready
How to do it

How it works

Single responsibility principle
Getting ready
How to do it

How it works

Open/closed principle
Getting ready
How to do it

How it works

4. Composing Event-Based Programs Using Reactive Extensions
Introduction
Installing Rx
Getting ready
How to do it

How it works

Events versus observables
Getting ready
How to do it

How it works

Using LINQ to perform queries
Getting ready
How to do it

How it works

Using schedulers in Rx
Getting ready
How to do it

How it works

Debugging lambda expressions
Getting ready
How to do it

How it works

5. Create Microservices on Azure Service Fabric
Introduction
Downloading and installing Service Fabric
Getting ready
How to do it

How it works

Creating a Service Fabric application with a stateless actor service
Getting ready
How to do it

How it works

Using Service Fabric Explorer
Getting ready
How to do it

How it works

6. Making Apps Responsive with Asynchronous Programming
Introduction
Return types of asynchronous functions
Getting ready
How to do it

How it works

Handling tasks in asynchronous programming
Getting ready
How to do it

How it works

Exception handling in asynchronous programming
Getting ready
How to do it

How it works

7. High Performance Programming Using Parallel and Multithreading in C#
Introduction
Creating and aborting a low-priority background thread
Getting ready
How to do it

How it works

Increasing maximum thread pool size
Getting ready
How to do it

How it works

Creating multiple threads
Getting ready
How to do it

How it works

Locking one thread until the contended resources are available
Getting ready
How to do it

How it works

Invoking parallel calls to methods using Parallel.Invoke
Getting ready
How to do it

How it works

Using a parallel foreach loop to run multiple threads
Getting ready
How to do it

How it works

Cancelling a parallel foreach loop
Getting ready
How to do it

How it works

Catching errors in parallel foreach loops
Getting ready
How to do it

How it works

Debugging multiple threads
Getting ready
How to do it

How it works

8. Code Contracts
Introduction
Downloading, installing, and integrating code contracts into Visual Studio
Getting ready
How to do it

How it works

Creating code contract preconditions
Getting ready
How to do it

How it works

Creating code contract postconditions
Getting ready
How to do it

How it works

Creating code contract invariant
Getting ready
How to do it

How it works

Creating code contract Assert and Assume methods
Getting ready
How to do it

How it works

Creating code contract ForAll method
Getting ready
How to do it

How it works

Creating code contract ValueAtReturn...

Table des matiĂšres