Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
C# 7 and .NET Core Solutions
Rating: 3.9 out of 5(13 ratings)
92 students

C# 7 and .NET Core Solutions

Quick solutions to common programming problems with the latest features of C# 7.0, .NET Core 2.0, and Visual Studio 2017
Last updated 6/2018
English
English [Auto],

What you'll learn

  • Write better and less code to achieve the same result as in previous versions of C#
  • Work with analyzers in Visual Studio
  • Write high-performance code in C#
  • Understand multi-threading
  • Make responsive apps with Asynchronous Programming
  • Demystify the Rx library using Reactive extensions
  • Work with files, streams, and serialization
  • Explore .Net Core 2.0 and ASP .NET MVC

Course content

10 sections50 lectures3h 14m total length
  • The Course Overview3:47

    This video gives glimpse of the overall course.

  • Working with Tuples8:59

    In this video, we are going to explore Tuples in closer detail.

    • Create a new class in the Program.cs file
    • Use the power of Tuples to declare the GetAverageAndCount() method
    • Consume the values returned by the Tuple directly 
  • Pattern Matching5:30

    C# 7.0 introduces an aspect common to functional programming languages with pattern matching. This new kind of construct can test values in different ways. We will look at it now.

    • Create two new classes called Student and Professor
    • Create a new method that takes a person object as parameter
    • Check what type of object is passed to it 
  • Out Variables1:21

    In this video we will look at the new changes that improves the readability and flow of the code.

    • Use TryParse to check if a string value is a valid integer
    • Declare the out variable
    • Use the var keyword 
  • Deconstruction2:23

    In this video, we will take a look at how the Tuples can be consumed using a deconstruction declaration.

    • Add a Deconstruct method to Student class
    • Use Deconstructors using extensio0n method 
  • Local Functions3:30

    In this video, we will illustrate the use of local functions. Here, we will create a method that calculates the floor space of a building after the common area space has been subtracted from the total floor space.

    • Create a method that takes three parameters - for the common area space
    • Take width and length of the building to calculate the total floor area
    • Subtract the common area from that to get the usable floor space for shops 
  • Ref Returns and Locals3:50

    Passing objects by reference in C# is nothing new. This is done using the ref keyword. In C# 7.0, however, you can now return objects by reference and store these objects in a local variable by reference. We will look at it in this video.

    • Create a new method inside the Chapter1 class
    • Create a second method with the same name
    • Write the variable values to the console window 
  • Generalized Async Return Types4:13

    In this video, we will be using the async type Task<T>

    • Add a button, label, timer, and textbox to the Windows form
    • Set the label with the timer text.
    • Check to see if the time to live is still valid for the current cached value 
  • Expression Bodies2:40

    Expression-bodied members have been a big hit with the C# developer community. We will now use this feature with – constructors, finalizers, and get and set accessors on properties and indexer. Also, we will look at throw expression.

    • Add the class some class and reduce the number of lines
    • Create an instance of the Chapter1 class and call the GetNameLength() method
    • Run your application 

Requirements

  • Familiarity with C#, .NET and Visual Studio 2015.

Description

C# has recently been open-sourced and brings a host of exciting new features that allows you to write better codes and resolve common programming challenges. This course will equip you with all the new features in a practical approach to solve everyday problems faced by developers. 

You will explore the new features of C# and .NET to get started with building the foundation of your application. In this course you will create regular expression, work with Files, Streams, and Serialization, and also handle task and exceptions. 

Then you work with MVC, enhance your coding performance and build a responsive and cross platform application from extracting data, search tool, notification panel and finally publish your application live.

About the Author

Dirk Strauss is a software developer and Microsoft .NET MVP from South Africa with over 13 years programming experience. He has extensive experience in SYSPRO Customization (an ERP system), with C# and web development being his main focus. He currently works for Embrace as a Full Stack developer.

He authored the C# Programming Cookbook in 2016 as well as C# 7 and .NET Core 2.0 Blueprints in 2017 (published by Packt). He has also written for Syncfusion, contributing to the Succinctly series of eBooks. He blogs whenever he gets a chance or you can follow him @DirkStrauss on Twitter.

Who this course is for:

  • This course is for C# developers who are familiar with C#, .NET and Visual Studio 2015, but want to learn the new features of C# 7 and .NET and maximize their programming productivity and stay current with the latest advancements in the C# language.