Learn C# in 7 days
Get up and running with C# 7 with async main, tuples, pattern matching, LINQ, regex, indexers, and more
Gaurav Aroraa
BIRMINGHAM - MUMBAI
Learn C# in 7 days
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: October 2017
Production reference: 1041017
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78728-704-4
www.packtpub.com
Credits
Author Gaurav Aroraa | Copy Editor Muktikant Garimella |
Reviewer Shivprasad Koirala | Project Coordinator Ulhas Kambali |
Commissioning Editor Aaron Lazar | Proofreader Safis Editing |
Acquisition Editor Denim Pinto | Indexer Tejal Daruwale Soni |
ContentDevelopmentEditor Vikas Tiwari | Graphics Tania Dutta |
Technical Editor Diwakar Shukla | Production Coordinator Nilesh Mohite |
About the Author
Gaurav Aroraa has an M.Phil in computer science. He is a Microsoft MVP, certified as a scrum trainer/coach, XEN for ITIL-F, and APMG for PRINCE-F and PRINCE-P. Gaurav serves as a mentor at IndiaMentor and the webmaster of dotnetspider. He is also a contributor to TechNet Wiki and a cofounder of Innatus Curo Software LLC. In the 19+ years of his career, he has mentored thousands of students and industry professionals. You can reach Gaurav via his blog, LinkedIn, or Twitter (@g_arora).
I want to thank all who motivated me and allowed me to spend time on this book, time that I was supposed to spend with them. My first thank you is to my wife, Shuby Arora, for her support in all ways. Then, I would like to thank my little angel, Aarchi Arora. A great thanks to my parents whose blessings are always with me; this is because of them. I would like to thank the entire Packt team, especially Vikas Tiwari, Diwakar Shukla, and Denim Pinto for their overnight support. A great thank you to Shivprasad Koirala for his in-depth knowledge and his suggestions to improve various sections of the book.
About the Reviewer
Shivprasad Koirala is an X-Microsoft MVP, Microsoft trainer, and technical author. He has written more than 80 books, and some of his bestsellers include .NET interview questions and SQL Server interview questions. You can catch him mostly recording training videos at http://www.questpond.com.
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 "Amazon Book URL". If you'd like to join our team of regular reviewers, you can email 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
Learning a new language or switching to an entirely different technology is a common industry demand. As a student one should prepare oneself to be up to date with market trends, and as a professional, one should be aware of the new things that are coming in with new technologies. To meet this demand, there are a lot of books that are of thousand pages long and aim to be comprehensive references to the C# programming language.
This book is entirely different and written so that someone who has a very basic knowledge of the C# language, or is a professional and working with another language but wants to switch, can learn C#. This book was designed with the aim that one should start with the basics and progress to an advanced level. The book contains concise content with relevant examples to explain everything.
There are a lot of sections in the book that will encourage you to learn more ; with this knowledge, you can impress your colleagues, employers, or batch-mates. There will be a few terms you will hear first time no problem, you can learn about them in this book.
At the end of every section you will find a hands-on exercise section that will build confidence and give you ideas for solving practical problems. You can find various hints in these exercises.
For the code examples, you can go to the GitHub repository (https://github.com/PacktPublishing/Learn-CSharp-in-7-days/) and download the source code for all chapters. You can easily use these code example in Visual Studio 2017 Update 3 by following the instructions mentioned thereon.
What this book covers
, Day 01 - Overview of the .NET Framework , gets you familiar with C#, including .NET Framework and .NET Core.
, Day 02 - Getting Started with C#
Next page