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 1
New C# 7.0 Tools to Boost Your Productivity
Content Locked
Section 8
Expression-Bodied Syntax
C# 6 introduced expression-bodied members for member functions, and read-only properties. C# 7.0 expands the allowed members that can be implemented as expressions. You can implement this in constructors, finalizers, and get and set accessors on properties and indexers. - Understand expression bodied syntax - Learn about allowing members to be implemented as expressions - Explore where you can use expression bodied syntax