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.
Credits Author Copy Editor Gaurav Aroraa Muktikant Garimella Reviewer Project Coordinator Shivprasad Koirala Ulhas Kambali Commissioning Editor Proofreader Aaron Lazar Safis Editing Acquisition Editor Indexer Denim Pinto Tejal Daruwale Soni Content Development Editor Graphics Vikas Tiwari Tania Dutta Technical Editor Production Coordinator Diwakar Shukla 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 ( ).
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 . Did www.PacktPub.com 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 and as a print www.PacktPub.com book customer, you are entitled to a discount on the eBook copy. Get in touch with us at for more details. At , you can also read a [email protected] www.PacktPub.com collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
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 . We award our regular reviewers with free eBooks [email protected] and videos in exchange for their valuable feedback. Help us be relentless in improving our products!.
Table of Contents Preface 1 Chapter 1: Day 01 - Overview of the .NET Framework 6 What is programming? 6 What is .NET? 8 What is .NET Core? 9 .NET Core features 10 What makes .NET Core? 10 What is .NET Standard? 11 Available IDEs and editors for C# 11 Setting up the environment 12 Hands - on exercises 14 Revisiting Day 01 15 Chapter 2: Day 02 - Getting Started with C# 16 Introduction to C# 16 History of the C# language 17 Understanding a typical C# program 18 1 (System) 21 3 (Day02) 21 2 (Program) 22 4 (Main) 22 5 (Day02) 23 6 (Day02) 24 7 (Dependencies) 24 8 (Program.cs) 25 Deep-dive into application using Visual Studio 26 Discussing code 28 Color 29 Beep 30 An overview of C# reserved keywords, types, and operators 31 Identifiers 32 Contextual 43 Types 45 Value type 46 Data types 46.
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.
1 Day 01 - Overview of the .NET Framework This is Day 01 of our seven day journey to learn C#. Today, we will begin with an introduction of a new world of programming and will discuss all the basic concepts required to learn this programming language. We will also discuss the .NET Framework and the .NET Core framework by covering important concepts of the framework. We will also get a basic understanding of managed and unmanaged code. At the end of the day, we will start with a simple Hello World program.