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

An overview of C# reserved keywords, types, and operators


Reserved keywords are nothing but predefined words that have special meaning for the compilers. You cannot use these reserved keywords as normal text or identifiers unless you explicitly tell the compiler that this word is not meant to reserve for the compiler.

Note

In C#, you can use the reserved keyword as a normal word by prefixing the @ symbol.

C# keywords are divided into the following categories:

  • Types: In C#, the typing system is divided into value type, reference type, and pointer type.
  • Modifiers: As is self-explanatory from its name, modifiers are used to modify the declaration of types and members of a specific type.
  • Statement keywords: These are programming instructions that execute in a sequence.
  • Method parameters: These can be declared as a value type or a ref type and values can be passed using out or ref keywords.
  • Namespace keywords: These are the keywords that belong to namespaces only.
  • Operator keywords: These operators are...