Book Image

Learn C# in 7 days

By : Gaurav Aroraa
1 (1)
Book Image

Learn C# in 7 days

1 (1)
By: Gaurav Aroraa

Overview of this book

This book takes a unique approach to teach C# to absolute beginners. You’ll learn the basics of the language in seven days. It takes a practical approach to explain the important concepts that build the foundation of the C# programming language. The book begins by teaching you the basic fundamentals using real-world practical examples and gets you acquainted with C# programming. We cover some important features and nuances of the language in a hands-on way, helping you grasp the concepts in a fluid manner. Later, you’ll explore the concepts of Object-Oriented Programming (OOP) through a real-world example. Then we dive into advanced-level concepts such as generics and collections, and you’ll get acquainted with objects and LINQ. Towards the end, you’ll build an application that covers all the concepts explained in the book. By the end of this book, you will have next-level skills and a good knowledge of the fundamentals of C#.
Table of Contents (15 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Revisiting day 2


So, we are concluding day two of our seven-day learning series. Today, we started with a very simple C# program and went through all of its parts (a typical C# program). Then, we discussed everything about C# reserved keywords and accessors and we also understand what contextual keywords are.

We covered the type casting and type conversion of various available data types in C#. You learned how boxing and unboxing happened and how we can perform conversion using inbuilt methods.

We also went through and understood various statements, and you learned the usage and flow of various statements, such as for, foreach, while, do. We looked at conditional statements, that is, if, if...else, if...elseif...else switch with the help of code examples.

We then went through arrays and understood them with the help of code examples, including string manipulations.

Finally, we concluded our day by covering structure and classes. We looked at how these two are different.

Tomorrow, on day three...