Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
What is New in C# 8
Rating: 4.3 out of 5(133 ratings)
4,113 students
Created byAhmad Mohey
Last updated 3/2020
English

What you'll learn

  • Implementing default interface methods
  • Working with nulls in C# 8
  • How to use null-coalescing assignment operator
  • Understand work of IDisposable interface
  • Make use of using declaration
  • Trying disposable ref structs
  • Building new switch expressions
  • Using property patterns to match on properties
  • Using tuple like patterns on switch statements
  • Learn how to use deconstruction methods
  • Understanding and working with positional patterns
  • Readonly Members
  • Static Local Functions
  • Asynchronous Streams
  • Verbatim Interpolated Strings
  • Using hat operator
  • Working with new range operator

Course content

1 section19 lectures1h 52m total length
  • Introduction1:42
  • Preparing Environment For C# 84:19

    In this video we are going to prepare you environment to write C# 8 apps which is included in .NET Core 3

  • Default Interface Methods7:30

    In this video we will be covering how to create default implementation of methods in interfaces.

  • Working with nulls in C# 87:56

    Working with nulls in C# 8 has become more mature to help developers avoid running into problems on runtime.

  • Null-coalescing Assignment Operator3:00

    Another operator (Null Coalescing Assignment Operator)  has been added to C# to help you shorten and fasten your coding experience.

  • Using Declaration6:47

    Using declaration is one of the most important added features which will make a better memory management for your app without you doing much.

  • Disposable ref structs3:34

    Now you can use dispose method to remove unmanaged resources with ref structs.

  • Switch Expressions5:34

    In this video we will learn how switch expressions has grown mature and became very neat in C# 8.

  • Property Patterns11:25

    Property pattern will give developers power when selecting based on specific properties in such an easy way as we are going to see.

  • Tuple Patterns9:36

    One of the added pattern in C# 8 is the tuple pattern when you can use the syntax of a pattern or unrelated variables to pattern the switch expressions.

  • Positional Patterns5:40

    One last pattern we are going to discuss in this video which is the positional pattern but it require one important thing, which is to have a deconstruction method as we will see.

  • Readonly Members2:24

    Small little feature added to C# 8 which is you can now add read-only modifier to struct members.

  • Static Local Functions5:11

    Another small little feature added to C# 8 to prevent developers from accessing variables by mistake when using local functions.

  • Asynchronous Streams8:52

    One of the most important features added to C# 8 is that you can now use asynchronous streams, which is a huge enhancement to asynchronous programming in C# as we are going to see in this video.

  • Verbatim Interpolated Strings10:39

    One cool features that you can use now verbatim and interpolated strings together to perform best practice and performance.

  • Index/Hat Operator5:27

    Another small but effective feature added to C# 8 is the hat operator, let see what it does and how it works.

  • Range7:30

    In this video we are going to learn how to use the range operator and how ranges work in C# 8.

  • Summary4:34
  • The Last Lecture1:18

Requirements

  • Student must have experience with C# before enrolling.

Description

The next major version of C# is officially released which is C# 8.0. We were expecting it for quite some time, we had the chance to learn all the minor features and enhancements included in C# 7.1, 7.2 and 7.3, and I can say I am quite excited about the new capabilities Microsoft keep adding to C#.

In this course we will be discussing the new features and enhancements of C# 8 with easy to follow examples to make you understand what each feature is about.

Please notice that this is not not a complete guide for C# language itself, this course covers only the features and enhancements in C# 8.

In this course we tried to break each feature down one by one for you each in a separate video with enough examples to illustrate the functionality of each feature.

But I have to mention that this course is not for someone who is looking to learn C# from the beginning or and not for a beginner as we will be covering some advanced features that requires some prior knowledge of C# in order to proceed without a problem, and from my side I will try to relate to any topic that you should be aware of to totally understand each feature functionality because some features are already based on an existing features in C#.

After finishing all the features and enhancements the course will present and explain important concepts such as .NET Core, .NET Framework .NET Standard, the differences between them what is a BCL what is MONO, topics that anyone looking to master C# should be aware of.

So what are you waiting for....let's start!

Who this course is for:

  • Anyone with experience in C#.
  • Developers who want to learn the new features of C# 8.