Title Page
C# 7 and .NET Core Cookbook
Quick solutions to common programming problems with the latest features of C# 7.0, .NET Core 1.1, and Visual Studio 2017
Dirk Strauss
BIRMINGHAM - MUMBAI
Copyright
C# 7 and .NET Core Cookbook
Copyright 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2017
Production reference: 1210417
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78728-627-6
www.packtpub.com
Credits
Author
Dirk Strauss | Copy Editor
Charlotte Carneiro |
Reviewer
Fabio Claudio Ferracchiati | Project Coordinator
Ulhas Kambali |
Commissioning Editor
Merint Thomas Mathew | Proofreader
Safis Editing |
Acquisition Editor
Nitin Dasan | Indexer
Tejal Daruwale Soni |
Content Development Editor
Vikas Tiwari | Production Coordinator
Shantanu N. Zagade |
Technical Editor
Madhunikita Chindarkar |
Foreword
When the author of this book, Dirk Strauss, asked me if I'd write a foreword , it took me about n milliseconds (where n is a small integer) to reply with a "yes". I've known Dirk for a few years, starting when we worked on a project that involved C# Code Contracts. Quite some time ago I worked with the Research in Software Engineering group at Microsoft Research, who originally developed Code Contracts, so when I saw Dirk's explanation of the technology, I knew immediately that Dirk has a rare ability to understand, use, and most importantly with regards to C# 7 and .NET Core Cookbook, explain ideas in a clear and precise way.
Most of my colleagues and I believe that a major challenge facing .NET developers, and in fact all software developers, is the astonishing explosion of new technologies and the associated tidal wave of various forms of documentation. It's becoming increasingly difficult to find those few valuable resources that get to the point quickly, and explain technologies and paradigms succinctly so you can get on with your work. This book is one such reference. I hope you'll enjoy and value C# 7 and .NET Core Cookbook as much as I do!
Dr. James McCaffrey
Microsoft Research
About the Author
Dirk Strauss is a software developer and Microsoft .NET MVP from South Africa with over 13 years of programming experience. He has extensive experience in SYSPRO Customization (an ERP system), with C# and web development being his main focus.
He works for Evolution Software, but in all fairness, he can't really call it working at all. When you're having fun and loving what you do with incredibly inspirational individuals, you will not work a day in your life.
He authored the C# Programming Cookbook in 2016 (also published by Packt) and has written for Syncfusion, contributing to the Succinctly series of eBooks.
He also blogs at https://dirkstrauss.com/, whenever he gets a chance.
I would like to thank the team at Evolution Software for being such an incredible source of inspiration to me in my professional and personal life. Working with you folks challenges me to become better at what I do and the way I live my life. Being a part of the Evolution Software team is the most fulfilling experience of my career. It is something that I will always be incredibly grateful for.
Last but by no means least, I would like to thank my wife and kids. Thank you for reminding me what life is actually about. Without your love and support, this book would not have been possible. I love you.
About the Reviewer
Fabio Claudio Ferracchiati is a senior consultant and a senior analyst/developer using Microsoft technologies. He works for Agic Technology ( http://www.agictech.com ). He is a Microsoft Certified Solution Developer for .NET, Microsoft Certified Application Developer for .NET, and Microsoft Certified Professional. He is also a prolific author and a technical reviewer. Over the last ten years, he's written articles for Italian and international magazines, and coauthored more than 10 books on a variety of computer topics.
www.PacktPub.com
For support files and downloads related to your book, please visit www.PacktPub.com .
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.
Why subscribe?
- Fully searchable across every book published by Packt
- Copy and paste, print, and bookmark content
- On demand and accessible via a web browser
Customer Feedback
Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1787286274.
If you'd like to join our team of regular reviewers, you can e-mail us at customerreviews@packtpub.com. We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products!
Preface
Visual Studio 2017 allows developers to harness the latest technology and create world-class applications across a variety of platforms. The new language features in C# 7.0 are powerful tools that will allow you to write better functioning software and deliver complex business requirements quicker.
Next page