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 a regular expression and its importance


A regular expression or pattern matching is nothing but a way in which we can check whether an input string is correct or not. This is possible with the use of the Regex class of the System.Text.RegularExpressions namespace.

The Importance of a regular expression

Pattern matching is very important while we are working to validate text input. Here, regular expression plays an important role.

Flexible

Patterns are very flexible and provide us with a way to make our own pattern to validate the input.

Constructs

There are various constructs that help us define the regular expression. Hence, we need to make them important in our programming where we need validated input. These constructs are character classes, character escapes, quantifiers, and so on.

Special characters

There is a huge usage of regular expressions in our day-to-day programmings and that why regular expressions are important. Here are various scenarios as per their usage, where special...