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

Discussing the basic architecture


In this section, we will discuss the basic architecture of our application; we will not discuss design patterns and other architecture-related stuff, which are beyond the scope of this book.

Note

To understand design patterns, refer to https://www.questpond.com/demo.html#designpattern.

 

As mentioned in the prerequisites, our application will be based on ASP.NET Core, which consumes the RESTful API. This is just a basic version, so we are not going to show too much implementation of the design patterns. The following image gives a schematic overview of our Visual Studio solution. We have a presentation and domain, you can split these layers to more layers to define business workflow.

I wrote the actual code using C# 7.0; the application covers whatever we discussed on Day 7.

Note

Complete application is shipped with this chapter on GitHub: <<Link>>

In this section, we will cover the main code snippets of whatever we learned up to Day 7. Download the...