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

Chapter 4. Day 04 - Discussing C# Class Members

We are in day four of our seven-day learning series. On day two, we discussed the typical C# program, and you understood how to compile and execute the program. We discussed theMain method and its use. We also discussed the reserved keywords of language C#, and then, we got an overview of classes and structures in C#. On day three, we discussed all the new features introduced in C#7.0.

In this chapter, the fundamentals of C# methods and properties will be explained, and we will also cover the concept of indexers in C#. The string manipulation discussed on day two will be extended through RegEx, and we will explain why it is powerful. File management will be covered along with some medium-level file system observers.

Today, we will cover C# classes in more depth. This chapter will cover the following topics:

  • Modifiers
  • Methods
  • Properties
  • Indexers
  • File I/O
  • Exception handling
  • Discussing regular expression and its importance

On day two, we discussed a typical...