Book Image

C# 7.x Tips, Tricks, and Techniques [Video]

By : Simon Hughes
Book Image

C# 7.x Tips, Tricks, and Techniques [Video]

By: Simon Hughes

Overview of this book

C# is a complex language, and it can be difficult to use it when you first start out. There are so many rules and standards that you're bound to make mistakes, but avoiding these common mistakes will make your programs much more efficient. With this course, you'll learn to implement practical and proven techniques to improve particular aspects of C# 7.x development. Each section covers tips and techniques with explicit instructions to carry out different C# 7.x tasks in a practical manner. The techniques are demonstrated using small practical examples. You will boost your skills with information on enhancing your coding style and performance, and learn about C# 7.x processes and code quality. This course focuses on discovering new possibilities with C# 7.x, that can enhance your current skill set. By the end of this course, you will have learned some exciting tips, best practices, and techniques for your C# 7.x coding. You will be able to build your own desktop applications in C# 7.x much faster and with ease. All the code and supporting files for this course are available at https://github.com/PacktPublishing/-C-7.x-Tips-Tricks-and-Techniques
Table of Contents (4 chapters)
Chapter 2
Pattern Matching for a Concise Syntax
Content Locked
Section 1
Techniques for Practicing Patterns
A very handy feature that C# 7.0 gives you is patterns. These provide a simple syntax to test whether an object meets a criteria related to its value or type. Practice and learn about different types of pattern matching. - Understanding constant patterns - Learn about type patterns - Understand the pitfalls and dangers of using var patterns